Coder Social home page Coder Social logo

kiruna's Introduction

Kiruna

Docker orchestration and watchdog.

What does it do

Kiruna is a service that you run on your docker host (typically inside a docker container) and feed with a kiruna.conf configuration file. It will:

  • Start services from this config file
  • Monitor their health (and restart them when needed)
  • Monitor the config file for changes (so you can just push it with tools like Ansible, Chef etc. and kiruna will act upon it)
  • Register IP/port pairs for each of the services with ETCD for use by load balancers etc.

Configuration file

The configuration file is called kiruna.conf and must be accessible in the root of this project or in an environment variable called KIRUNA_CONF.

It is a JSON file with the following structure.

{
"Variables": {
    "key": "value"
},
"Registration": {
    "Host": "host-ip of etcd server",
    "Port": "4001",
    "Ip": "",
    "Ttl": "ttl-of-registrations",
    "Prefix": "prefix-in-etcd-key-space"
},
"Defaults": {
    "any-service-key": "value"
},
"Services": {
    "service-name": {
        "HardDeploy": "if-true-stop-old-container-then-restart",
        "Registry": "custom-registry-host-colon-port",
        "Image": "docker-image-name",
        "Tag": "docker-image-tag",
        "Enabled": "true|false",
        "PublishAllPorts": "true|false",
        "Dependencies": ["other-service-name"],
        "SettleTimeout": "time-needed-by-load-balancers-etc-after-a-start-in-ms",
        "NetworkMode": "any-docker-network-mode",
        "Ports": {
            "container-port": "host-port"
        },
        "Health": {
             "Http": {
                "Port": "docker-port-to-check-on",
                "Ip": "ip-address-to-check-on (for public IP mapping)",
                "Path": "/this-is-my-health-indicator"
            }
        },
        "Environment": {
            "key": "value"
        },
        "Volumes": {
            "container-path": "host-path"
        }
    }
}
}

kiruna's People

Contributors

ewoutp avatar

Stargazers

Pavel Timofeev avatar

Watchers

James Cloos 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.