27 lines
397 B
Plaintext
27 lines
397 B
Plaintext
|
job "drain_simple" {
|
||
|
datacenters = ["dc1", "dc2"]
|
||
|
|
||
|
constraint {
|
||
|
attribute = "${attr.kernel.name}"
|
||
|
value = "linux"
|
||
|
}
|
||
|
|
||
|
group "group" {
|
||
|
|
||
|
task "task" {
|
||
|
driver = "docker"
|
||
|
|
||
|
config {
|
||
|
image = "busybox:1"
|
||
|
command = "/bin/sh"
|
||
|
args = ["-c", "sleep 300"]
|
||
|
}
|
||
|
|
||
|
resources {
|
||
|
cpu = 256
|
||
|
memory = 128
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|