open-nomad/e2e/isolation/input/alloc_exec.nomad
2021-01-28 12:03:19 +00:00

26 lines
370 B
HCL

job "alloc_exec" {
datacenters = ["dc1"]
type = "service"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "main" {
task "main" {
driver = "exec"
config {
command = "/bin/sleep"
args = ["30s"]
}
resources {
cpu = 100
memory = 64
}
}
}
}