-
Notifications
You must be signed in to change notification settings - Fork 1
/
nomad-job.json
113 lines (113 loc) · 2.66 KB
/
nomad-job.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"job": {
"Region": "global",
"ID": "nt-services-ifconfig",
"ParentID": "",
"Name": "nt-services-ifconfig",
"Type": "service",
"Priority": 50,
"AllAtOnce": false,
"Datacenters": [
"dc1"
],
"Constraints": [
{
"LTarget": "${attr.kernel.name}",
"RTarget": "linux",
"Operand": "="
}
],
"TaskGroups": [
{
"Name": "ifconfig",
"Count": 1,
"Constraints": null,
"RestartPolicy": {
"Attempts": 10,
"Interval": 300000000000,
"Delay": 25000000000,
"Mode": "delay"
},
"Tasks": [
{
"Name": "ifconfig",
"Driver": "docker",
"User": "",
"Config": {
"image": "registry.local/ipd",
"port_map": [
{
"theapp": 8080
}
]
},
"Env": {},
"Services": [
{
"Name": "ifconfig",
"Tags": [
"master",
"http-service"
],
"PortLabel": "theapp",
"Checks": [
{
"Name": "alive",
"Type": "tcp",
"Command": "",
"Args": null,
"Path": "",
"Protocol": "",
"Interval": 20000000000,
"Timeout": 2000000000
}
]
}
],
"Constraints": null,
"Resources": {
"CPU": 2048,
"MemoryMB": 1024,
"DiskMB": 300,
"IOPS": 0,
"Networks": [
{
"Device": "",
"CIDR": "",
"IP": "",
"MBits": 1,
"ReservedPorts": null,
"DynamicPorts": [
{
"Label": "theapp",
"Value": 0
}
]
}
]
},
"Meta": null,
"KillTimeout": 5000000000,
"LogConfig": {
"MaxFiles": 10,
"MaxFileSizeMB": 10
},
"Artifacts": null
}
],
"Meta": null
}
],
"Update": {
"Stagger": 10000000000,
"MaxParallel": 1
},
"Periodic": null,
"Meta": null,
"Status": "running",
"StatusDescription": "",
"CreateIndex": 50570,
"ModifyIndex": 67567,
"JobModifyIndex": 67567
}
}