open-nomad/e2e/scaling/input/namespace_default_1.nomad

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
487 B
Plaintext
Raw Normal View History

2021-01-11 10:34:19 +00:00
job "horizontally_scalable" {
datacenters = ["dc1"]
type = "service"
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"]
}
}
}
}