open-nomad/e2e/disconnectedclients/input/lost_max_disconnect.nomad
2023-04-10 15:36:59 +00:00

41 lines
636 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
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
}
}
}
}