open-nomad/e2e/rescheduling/input/rescheduling_system.nomad

31 lines
401 B
HCL

job "test" {
datacenters = ["dc1", "dc2"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
type = "system"
group "t" {
count = 1
task "t" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "lol 5000"]
}
}
restart {
attempts = 0
delay = "0s"
mode = "fail"
}
}
}