open-nomad/e2e/systemsched/input/system_job0.nomad

38 lines
518 B
Plaintext
Raw Normal View History

2020-02-04 18:59:39 +00:00
job "system_job" {
datacenters = ["dc1"]
type = "system"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
2020-02-04 18:59:39 +00:00
group "system_job_group" {
count = 1
restart {
attempts = 10
interval = "1m"
delay = "2s"
mode = "delay"
}
task "system_task" {
driver = "docker"
config {
image = "bash:latest"
command = "bash"
args = ["-c", "sleep 15000"]
}
env {
version = "1"
}
}
}
}