Shared IP in CoreOS Shared IP in CoreOS docker docker

Shared IP in CoreOS


There are a few different methods of taking care of this. If you're using a cloud provider (EC2 / OpenStack / Google Compute Engine) there is the concept of a floating IP which can be moved via an API call. This gets rid of having to use things like VRRP directly.

In the long run this is best handled by utilizing DNS entries with a short TTL. Using that method also allows you the greater flexibility of having location aware applications (where DNS in different regions can route to the closest location), easy transition to IPv6, and failover across physical locations without needing to maintain your own internal routing infrastructure.


If you are using keepalived just add a startup service with the floating ip in your cloud-init so config in every node of the coreos cluster

  - name: local-paas-ip.service    command: start    content: |    [Unit]    Description=Receive traffic from keepalived floating ip    [Service]    ExecStart=/usr/bin/sudo /usr/bin/ip addr add XXX.XXX.XXX.XXX dev lo:1

I have have the same question/doubts about if this is the right option but I need something working now.