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
[Add] ConsulCatalog provider: Using K/V for properties (weight, load balancer, circuit breaker) #254
Conversation
…rties (weight, load balancer, circuit breaker)
Hi @samber, thanks a lot for your contribution :) There is an issue with consul, there is no label :'( : Your idea is great but I thought in the first place that I would use Consul tags to achieve that.
WDYT? |
I think using tags would be better considering how you are most likely populating the consul catalog by some automatic scraping of another directory. e.g mesos-consul. Having another source of truth for some of the configuration does not sound like a good idea. |
We are building a Consul+Docker stack with Registrator to populate the Consul Catalog. Using tags is a hack. Unfortunately, as you may know, storing kv-attributes in the consul catalog is discussed for 2y in the Consul ML and on Github. It's still not part of the road map. It is a trade-off. For Registrator, a PR is going to be merge to use KV as attribute storage. gliderlabs/registrator#261 |
Could you elaborate on this? Because we would have to parse tags? It seems much simpler to me to run a container using:
which in Consul results in:
I don't say your solution is bad, but I just want to expose my point of view :) |
For what it's worth I like the tags idea, seems easier to a mange. |
Ok, let's do that. Syntax of a tag: traefik.(loadbalancer | weight | circuitbreaker)=%value |
…weight, circuitbreaker)
…weight, circuitbreaker)
See #253