-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathtestjob.json
43 lines (42 loc) · 1.08 KB
/
testjob.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
{
"$schema": "https://raw.githubusercontent.com/jboero/hashicorp-schemas/master/JSON/nomad/0.11/job.json",
"Affinities": {
"attribute": "${meta.rack}",
"value": "r1",
"weight": 50
}
"Constraint": {
"attribute": "${attr.kernel.name",
"value": "linux"
}{
"attribute": "${attr.kernel.name",
"value": "linux"
}{
"ID": "example",
"Name": "example",
"Type": "service",
"Priority": 50,
"Datacenters": [
"dc1"
],
"TaskGroups": [
{
"Name": "example",
"Count": 1,
"Tasks": [
{
"Name": "example",
"Driver": "exec",
"Config": {
"Command": "my-binary",
"Args": [
"-flag",
"1"
]
}
}
]
}
]
}
}