open-nomad/e2e/disconnectedclients/input/lost_max_disconnect.nomad

38 lines
568 B
HCL

job "lost_max_disconnect" {
datacenters = ["dc1", "dc2"]
group "group" {
max_client_disconnect = "1h"
count = 2
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
constraint {
operator = "distinct_hosts"
value = "true"
}
task "task" {
driver = "docker"
config {
image = "busybox:1"
command = "httpd"
args = ["-v", "-f", "-p", "8001", "-h", "/var/www"]
}
resources {
cpu = 128
memory = 128
}
}
}
}