Docker Community Forums

Share and learn in the Docker community.

Docker 1.12 External VIP


(Mastermindg) #1

So it’s great that every node in the swarm listens for service requests but in my lab environment I can only port-map to a single IP address and port…so if that one IP address goes down I’m out of luck.

I can use Keepalived on all of the nodes to maintain an “external” VIP that will fail-over if the master node becomes unresponsive, however this requires a lot of host work that I’d like to avoid.

So if I’ve got 3 nodes running on the 192.168.1.0 network I’d want a VIP at 192.168.1.2 and my other nodes sitting anywhere in that range.

Is there any other way to present a separate IP address for a swarm that is publicly available?