diff --git a/traefik.nomad.hcl b/traefik.nomad.hcl index 8bd2ce6..c4fd07c 100644 --- a/traefik.nomad.hcl +++ b/traefik.nomad.hcl @@ -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"