open-nomad/e2e/oversubscription/testdata/docker.nomad
2021-03-30 16:55:58 -04:00

28 lines
528 B
HCL

job "oversubscription-docker" {
datacenters = ["dc1"]
constraint {
attribute = "${attr.kernel.name}"
operator = "set_contains_any"
value = "darwin,linux"
}
group "group" {
task "task" {
driver = "docker"
config {
image = "busybox:1.29.2"
command = "/bin/sh"
args = ["-c", "cat /sys/fs/cgroup/memory/memory.limit_in_bytes; sleep 1000"]
}
resources {
cpu = 500
memory = 20
memory_max = 30
}
}
}
}