open-nomad/e2e/scaling/input/namespace_a_1.nomad
2021-01-11 11:34:19 +01:00

35 lines
516 B
HCL

job "horizontally_scalable" {
datacenters = ["dc1"]
type = "service"
namespace = "NamespaceA"
update {
health_check = "task_states"
}
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "horizontally_scalable" {
scaling {
min = 2
max = 3
enabled = true
policy {}
}
task "test" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "sleep 15000"]
}
}
}
}