Add explicit distinct_host constraint
This commit is contained in:
parent
24e9993a6d
commit
6ca5b7a51d
|
@ -8,6 +8,12 @@ job [[ .traefik.instance | toJSON ]] {
|
|||
count = [[ .traefik.count ]]
|
||||
shutdown_delay = "6s"
|
||||
|
||||
# Force different instances to run on distinct nodes
|
||||
constraint {
|
||||
operator = "distinct_hosts"
|
||||
value = "true"
|
||||
}
|
||||
|
||||
network {
|
||||
mode = "bridge"
|
||||
|
||||
|
|
Loading…
Reference in New Issue