-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consulCatalog issue when serviceName contains a dot #475
Comments
Ping @samber |
Umm this might be something else, as now Traefik stopped working with consulCatalog even though I have the described constraint system in effect. I'm still researching this, but currently this seems to trigger when I bring a service online, whose |
Yeah, I've tested many times stopping and starting my only service whose name contains a dot, and it appears consistent that the log line emits when that service comes online:
When the dot-containing service is present in Consul, after restarting Traefik the The second I stop my dot-containing service Workaround until now: I'll make the service not contain a dot. |
P.s. |
The documentation is false: |
tl;dr: I only got
consulCatalog
to work by adding--consulCatalog.constraints=tag==foo
toargv
and addingtraefik.tags=traefik
tag to service definition in Consul - which sounds very artificial since according to docs the defaults should work with every Consul service and no constraints would be required. Without the constraints Traefik fails with very unhelpful error message.Version:
traefik:latest
(today is 2016-06-21)Full description:
constraints
is documented as optional. BUT, running without it yields:This error message just leaves me dumbfounded. There's nothing in it that helps me diagnose what's wrong. Desperately I'll try to add a
constraint
to filter Consul-advertised services to only one service that has very explicit tags and so it should work - at least for drilling down on the issue.When I try to apply a constraint using the documented way:
This yields:
This also doesn't work:
Nor:
I got it working only after I added
--consulCatalog.constraints=tag==foo
toargv
.To this moment, I don't know why I have to add a constraint, since according to docs there doesn't need to be any Consul tags with a service for it to work correctly in Traefik (only tag that seems really important is
traefik.frontend.rule
but it has a sensible default anyways (definingdomain
didn't help).Also, it is super confusing to specify constraint
tag==foo
and to realize it doesn't look at Consul tag "foo", but Traefik tag foo instead, which is implemented with Consul tags, but with a prefix (traefik.tags=foo
). I think I might just have a stroke dealing with all this complexity. :DThe text was updated successfully, but these errors were encountered: