open-nomad/jobspec/test-fixtures/migrate-job.hcl
2019-07-20 16:55:07 +02:00

32 lines
511 B
HCL

job "foo" {
datacenters = ["dc1"]
type = "batch"
migrate {
max_parallel = 2
health_check = "task_states"
min_healthy_time = "11s"
healthy_deadline = "11m"
}
group "bar" {
count = 3
task "bar" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "echo hi"]
}
}
migrate {
max_parallel = 3
health_check = "checks"
min_healthy_time = "1s"
healthy_deadline = "1m"
}
}
}