You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ContainerPilot on a micro-services application deployed on a Swarm.
Within a redis container (based on the autopilotpattern/redis image), there are several interfaces (due to Swarm) and I do not manage to select the correct private IP as the consul agent's advertise address. As consul sees several private IP, I need to select one though.
Is there a way to specify the interface to use in case several are present ? An env var which could be provided in the compose file ?
This env var could be used to get the correct IP which then could be set in a etc/consul.json file using sed like replacement (as suggested in TritonDataCenter/containerpilot#258).
Apologies for not getting back to you. I think adding an environment variable to configure the interface sounds perfectly reasonable. I'm not sure anyone is going to get a commit out any time soon on our end (for this blueprint) but I'd be happy to code review a PR if you have the time.
I'm using ContainerPilot on a micro-services application deployed on a Swarm.
Within a redis container (based on the autopilotpattern/redis image), there are several interfaces (due to Swarm) and I do not manage to select the correct private IP as the consul agent's advertise address. As consul sees several private IP, I need to select one though.
Is there a way to specify the interface to use in case several are present ? An env var which could be provided in the compose file ?
This env var could be used to get the correct IP which then could be set in a etc/consul.json file using sed like replacement (as suggested in TritonDataCenter/containerpilot#258).
This env var could also be used in manage.py and defaut to eth0 (currently hardcoded:https://github.com/autopilotpattern/redis/blob/7588d9c604643d7eb1ea9c919929bee7f914e8fa/bin/manage.sh#L314-316
I'm currently having some hard time deploying ContainerPilot on Swarm :
(TritonDataCenter/containerpilot#503)
What do you think ?
The text was updated successfully, but these errors were encountered: