containership.plugin.service-discovery

A service discovery plugin for ContainerShip

Usage no npm install needed!

<script type="module">
  import containershipPluginServiceDiscovery from 'https://cdn.skypack.dev/containership.plugin.service-discovery';
</script>

README

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!