containership.plugin.service-discovery

0.4.1 • Public • Published

service-discovery

About

Build Status

Build Status

Description

A service discovery plugin for Containership

Author

ContainerShip Developers - developers@containership.io

Usage

Install

containership plugin add service-discovery

Update

containership plugin update service-discovery

Remove

containership plugin remove service-discovery

Under the Hood

The ContainerShip controlling leader dynamically creates an application named containership-haproxy on the cluster, using the containership/haproxy image. The follower nodes automatically configure DNS records for all applications on the cluster, as well as hosts. Haproxy listens on each application's discovery_port, loadbalancing tcp connections to the backing containers for that application. To route to another application, you can simply make a request to {app_name}.{process.env.CS_CLUSTER_ID}.containership:{CS_DISCOVERY_PORT_APP_NAME}. More detailed information about the service-discovery plugin can be found in the docs.

Contributing

Pull requests and issues are encouraged!

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i containership.plugin.service-discovery

    Weekly Downloads

    9

    Version

    0.4.1

    License

    GPL-3.0

    Last publish

    Collaborators

    • nicktate
    • containershipbot
    • normanjoyner