Giter VIP home page Giter VIP logo

consul2vulcan's Introduction

Syncs the service catalog of Consul to vulcand.

  • based on consul-template, generating a template that executes curl calls to etcd
  • syncs al services, using the service name as the backend name, and the service node ids as the backend server names.
  • relies on TTL for removing backends/servers that are gone.

To use:

docker run -e ETCD="http://192.168.59.103:4001" -e CONSUL="192.168.59.103:8500" -e TTL=60 elsdoerfer/consul2vulcand

If you have a consul service called "api-http", the backend in vulcand will be called "api-http".

To test this locally

Run consul, etcd:

$ docker run -p 8500:8500 progrium/consul --server --bootstrap
$ docker run -p 4001:4001 coreos/etcd --addr 192.168.59.103:4001

Run this:

$ docker run -e ETCD="192.168.59.103:4001" -e CONSUL="192.168.59.103:8500" -e TTL=60 -e VERBOSE=1 elsdoerfer/consul2vulcand

Get some services into consul:

# docker run -v /var/run/docker.sock:/tmp/docker.sock gliderlabs/registrator -ip 192.168.59.103 consul://192.168.59.103:8500

Define a backend:

$ etcdctl --peers http://192.168.59.103:4001 mkdir /vulcand/backends/etcd-4001/backend

consul2vulcan's People

Contributors

miracle2k avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.