Skip to content
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

Consul Catalog - Multi DC #544

Open
rogeriollacerda opened this issue Jul 19, 2016 · 11 comments
Open

Consul Catalog - Multi DC #544

rogeriollacerda opened this issue Jul 19, 2016 · 11 comments
Labels
area/provider/consulcatalog contributor/wanted Participation from an external contributor is highly requested kind/enhancement a new or improved feature. priority/P3 maybe

Comments

@rogeriollacerda
Copy link

Can traefik get containers from more than one datacenter on Consul? We use consul to manage applications of our 3 datacenters.

@keis
Copy link

keis commented Jul 21, 2016

it's only looking at the dc of the local agent. making the dc configurable would be trivial. supporting multiple dcs at once is a bit hairy. ideally traefik core would be able to multiplex the same provider with different configs.

btw my setup has a traefik for each dc that is also configured with its own domain.

@DBuret
Copy link

DBuret commented May 28, 2019

You may be able to implement that by allowing traefik to use prepared queries instead of the service Api. Check the last sample in the above link. The user would have to give to traefik the prepared query he made in consul.

@ghost
Copy link

ghost commented Aug 6, 2019

if its a duplicate, then how to handle queries instead of services?

@vvershkov
Copy link

Any updates here?

@codyja
Copy link

codyja commented Mar 5, 2020

Would like to see this also. A nice use case would be to have a percentage of traffic be sent to the other consul data center service.

@ddreier
Copy link

ddreier commented Apr 19, 2021

This would be great. It could really come in handy when trying to hit a local service if available, but fail over to instances in another data center if necessary.

@keslerm
Copy link

keslerm commented Sep 7, 2021

Also a nod from me this would be helpful in our cloud/on prem hybrid setups

@vvarga007
Copy link

When I define a resolver configuration entry to fail over the service to a different datacenter, it works great with the consul ingress gateway, but doesn't work with Traefik. :/

@xenofree
Copy link

Will this feature be implemented ?

@jhitt25
Copy link

jhitt25 commented May 23, 2023

I'd be happy to look into creating a pull request for this, given a small bit of guidance. Adding prepared query support shouldn't be all that difficult, but where to put the integration in Traefik is in question. It isn't part of "Consul Catalog", but it does feel closely related and would essentially perform all of the same functions as the Catalog provider, just via different API calls to get the services. Should this be a wholly separate provider or should it be an addition to the Catalog provider? My feeling is that we could apply all of the same configuration to both catalog and prepared query lookups and simply combine the results, but im open to suggestions.

@vvarga007
Copy link

Any update on this?

@nmengin nmengin added the contributor/wanted Participation from an external contributor is highly requested label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/consulcatalog contributor/wanted Participation from an external contributor is highly requested kind/enhancement a new or improved feature. priority/P3 maybe
Projects
None yet
Development

No branches or pull requests