GithubHelp home page GithubHelp logo

kassisol / flip Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.33 MB

An application to manage a Floating IP address on a Docker Swarm cluster

License: GNU General Public License v3.0

Makefile 4.33% Go 60.93% Shell 29.11% Dockerfile 5.64%
docker-swarm floating-ip

flip's Introduction

Flip

An application to manage a Floating IP address on a Docker Swarm cluster.

The setup will consist of a Docker Swarm cluster with flip enabled on each managers. The flip daemon controls on which host the Floating IP will be configured. The Floating IP is only assigned to one host at a time (providing active / passive failover). In the event that the service fails on the active Docker host, Docker Swarm will relocate it on another member of the cluster and flip daemon will assign the Floating IP on that member.

Get started

To enable flip for a given service, add the label flip.enabled: "true" to the service configuration.

There is 2 types of datasource to get the Floating IP from.

File

Create a yaml file with the following content:

---
floating_ip:
  address: '192.168.12.226'
  netmask: '255.255.255.0'
  gateway: '192.168.12.1'

Then run the docker command:

docker run -d -v /var/run/docker.sock:/var/run/docker.sock -v /opt/flip/config.yml:/tmp/config.yml --net host --cap-add=NET_ADMIN --restart=always --name flip kassisol/flip:x.x.x -d file -o /tmp/config.yml -D

Metadata

Kassisol

The metadata server can be downloaded from https://github.com/kassisol/metadata. Once running and provisioned with data, run the docker command to start flip.

docker run -d -v /var/run/docker.sock:/var/run/docker.sock --net host --cap-add=NET_ADMIN --restart=always --name flip kassisol/flip:x.x.x -d kassisol -o "url=http://metadata.example.com:8080;itype=public;index=0" -D

User Feedback

Issues

If you have any problems with or questions about this application, please contact us through a GitHub issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.