Closed scalp42 closed 9 years ago
This is what we use in haproxy-consul:
https://github.com/CiscoCloud/haproxy-consul/blob/master/template/marathon.tmpl
Just as an FYI, we are moving towards replacing the marathon-> marathon-consul -> consul setup with traefik.
Thanks a lot @stevendborrelli
Any chance you could give some insight related to the move to traefik ? I'm assuming less moving parts but would love to know.
Sure:
Fair enough! Greatly appreciated @stevendborrelli
Digging in traefik, unfortunately only http loadbalancing is supported (vs tcp mode of haproxy).
Any chance the repo could show an example on how to use it lets say with
consul-template
for example ?I'm assuming we need to grab
taskStatus
in the JSON store:But how do we iterate the tasks in the KV ?
marathon-consul
seems to store a single key as well as a folder:Thanks in advance for chiming in.