traefik: Traefik doesn't auto re-add re-enabled service based on Consul Catalog changes
Do you want to request a feature or report a bug?
Bug
What did you do?
- register service -> service comes available in traefik
- stop service -> service is gone from traefik
- start same service -> service is not available in traefik but alive in Consul
- wait 5-20 minutes -> service is not available in traefik
- restart traefik -> service comes available in traefik
What did you expect to see?
It seems to be a sub-issue of previously closed issue
What did you see instead?
Changes are properly updated, but in case of deregistering and registering same service there are issues.
Also I believe I could misconfigured something, would appreciate for hints
Output of traefik version
: (What version of Traefik are you using?)
Consul version: 1.0.6 Traefik version: v1.5.4, v1.6.0-rc4
What is your environment & configuration (arguments, toml, provider, platform, …)?
My Traefik config is:
[entryPoints]
[entryPoints.http]
address = ":5555"
compress = false
[entryPoints.http.proxyProtocol]
trustedIPs = ["10.0.0.0/8"]
[entryPoints.traefik_api]
address = ":1111"
compress = false
[ping]
entryPoint = "http"
[consulCatalog]
endpoint = "127.0.0.1:8450"
exposedByDefault = false
prefix = "traefik"
[api]
entryPoint = "traefik_api"
dashboard = true
debug = true
[traefikLog]
format = "json"
[accessLog]
format = "json"
defaultEntryPoints = ["http"]
Frontend rule is exposed via service tag: traefik.frontend.rule=Host:example.com
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 30 (16 by maintainers)
@ldez in my opinion I dont think issue #3380 is a duplicate of this issue. There are two related issues but quite different:
I think this issue thread is for the 1st. And I opened #3380 for the 2nd.