Git Product home page Git Product logo

shell-registrator's Introduction

shell-registrator

Small and lightweight registrator for docker containers in a CoreOS cluster. Registers all started, stopping and running containers to etcd in the following format:

/services/[container-name]/[machine-name]/[container-id]/[key]

Where key can be:

  • image: The used docker image
  • ip-address: The continer ip address
  • upstreams: Contains a lis of all exposed ports, the value of /1080 in the list below is 10.0.0.10:1080
  • databases: The value of the DATABASES environment variable. (Set by adding -e variables to you docker run command)
  • SERVICE_[STRING]: Any docker environment variable that starts with SERVICE_ will be published in etcd.
$ etcdctl ls /services/webserver --recursive
/services/webserver/cluster-worker-1
/services/webserver/cluster-worker-1/5e3caa093520
/services/webserver/cluster-worker-1/5e3caa093520/ip-address
/services/webserver/cluster-worker-1/5e3caa093520/upstreams
/services/webserver/cluster-worker-1/5e3caa093520/upstreams/1080
/services/webserver/cluster-worker-1/5e3caa093520/image
/services/webserver/cluster-worker-2
/services/webserver/cluster-worker-2/b8dabc202f1b
/services/webserver/cluster-worker-2/b8dabc202f1b/image
/services/webserver/cluster-worker-2/b8dabc202f1b/ip-address
/services/webserver/cluster-worker-2/b8dabc202f1b/upstreams
/services/webserver/cluster-worker-2/b8dabc202f1b/upstreams/1080

shell-registrator's People

Contributors

johan-adriaans avatar

Watchers

 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.