Docker Swarm Mode: traefik.docker.network should default only to networks that traefik is attached to #979
Labels
area/provider/docker/swarm
kind/enhancement
a new or improved feature.
priority/P3
maybe
status/5-frozen-due-to-age
Milestone
Assume the following situation:
traefik-net
with 192.168.0.0/24backend
with 192.168.1.0/24traefik-net
network with the ip address 192.168.0.2traefik.port=80
andtraefik.frontend.rule=myapp.example.com
Expected behavior:
Traefik creates a backend for http://192.168.0.4
Observed behavior in 1.1.2:
Traefik alternates between http://192.168.0.4 and http://192.168.1.2 every time it refreshes its config which sporadically causes 502 Bad Gateway errors. This is clearly visible when refreshing the traefik web interface every 30 seconds or so.
Possible solutions/fixes:
traefik.docker.network=traefik-net
for every single application that is attached to more than one networktraefik.docker.network
intraefik.toml
(as far as I can see from the docs this is not possible right now)The text was updated successfully, but these errors were encountered: