open-nomad/e2e/deployment/input/deployment_auto0.nomad

62 lines
950 B
Plaintext
Raw Normal View History

2019-05-20 15:37:36 +00:00
job "deployment_auto.nomad" {
datacenters = ["dc1"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
2019-05-20 15:37:36 +00:00
group "one" {
count = 3
update {
max_parallel = 3
auto_promote = true
2019-10-11 12:00:05 +00:00
canary = 2
2019-05-20 15:37:36 +00:00
}
task "one" {
driver = "raw_exec"
config {
2019-10-11 12:00:05 +00:00
command = "/bin/sleep"
# change args to update the job, the only changes
args = ["1000000"]
2019-05-20 15:37:36 +00:00
}
resources {
2019-10-11 12:00:05 +00:00
cpu = 20
memory = 20
2019-05-20 15:37:36 +00:00
}
}
}
group "two" {
count = 3
update {
2019-10-11 12:00:05 +00:00
max_parallel = 2
auto_promote = true
canary = 2
min_healthy_time = "2s"
2019-05-20 15:37:36 +00:00
}
task "two" {
driver = "raw_exec"
config {
2019-10-11 12:00:05 +00:00
command = "/bin/sleep"
# change args to update the job, the only changes
args = ["2000000"]
2019-05-20 15:37:36 +00:00
}
resources {
2019-10-11 12:00:05 +00:00
cpu = 20
memory = 20
2019-05-20 15:37:36 +00:00
}
}
}
}