open-nomad/e2e/nodedrain/input/drain_ignore_system.nomad

29 lines
431 B
Plaintext
Raw Normal View History

job "drain_ignore_system_service" {
datacenters = ["dc1", "dc2"]
type = "system"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "group" {
task "task" {
driver = "docker"
config {
image = "busybox:1"
command = "/bin/sh"
args = ["-c", "sleep 300"]
}
resources {
cpu = 256
memory = 128
}
}
}
}