-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Exclude some frontends in consul catalog #555
Comments
You can add a |
Unfortunately Nomad, (and maybe some other services) registers itself with Consul without an option to specify a tag/label. So I think this is not a preferable way to exclude some system services from traefik. |
I do see tags in Nomad : https://www.nomadproject.io/docs/jobspec/servicediscovery.html#tags |
That's not what I'm talking about. I can assign the tag with a nomad |
OK I see. Hum, then I don't see any way for traefik to filter those services... Any idea? |
I'm thinking of something like this in consul catalog backend configuration:
Which will exclude the specified services. It'll be nice if |
I see. That looks cool. So I would be able to use a |
Yep, and it already works, but the toml config have to be refined. |
Thank you. |
Can we close this one? |
Ok. Never mind. Closing. |
Hi I tried the solution you provided:
And I cannot make it work, every time I set the constraints, it excludes all the services even if I have some in consul which have the traefik label like:
I'm starting traefik with the docker image ( Thanks |
Ok, I got it working, my mistake. |
@nhaumont That works perfectly in consul. Thanks!! |
@nhaumont 's solutions works but I would like to use Consuls default tags such as service {
tags = ["traefik.tags=traefik", "http"]
...
} @emilevauge Can I somehow configure |
Hi @bilke , as Traefik v2.0 is currently worked on (alpha state), the behavior of the KV stores (as Consul Backends) might be subject to change, so stay tuned! You can track the work on the Kanban board on this repository (tab "Projects"). |
There are some services in consul such as nomad, nomad-client, etc. that I want to exclude from the auto discovered frontends by consul catalog backend. Currently is there a way to prohibit those frontends (and theirs corresponding backends) from being included by consul catalog?
The text was updated successfully, but these errors were encountered: