Consul using etcd on CoreOS for bootstrap. Based on https://github.com/democracyworks/consul-coreos
50K+
This is for running a Consul cluster on CoreOS using etcd to bootstrap it.
While CoreOS already has etcd built in and it is very similar to Consul, it is missing some of the service discovery features offered by Consul. Namely the service catalog and service health checking. These things are nice to have.
This also allows you to run Registrator on CoreOS clusters and still get the Consul-backed extra features (such as health-check support).
git clone https://github.com/cap10morgan/consul-coreos.git./etc/environment exists on your CoreOS machine(s).
echo 'COREOS_PRIVATE_IPV4=your.ip.address' > /etc/environmentfleetctl submit [email protected]
fleetctl start consul@1
fleetctl start consul@2
... as many more as you want
Fleet will run one Consul container per CoreOS node, so you probably want to start a consul@N up to the number of CoreOS nodes in your cluster. Although be aware that currently this runs all of them as Consul servers, which is not recommended past a ceratin cluster size (some of them should start being run as clients past a certain number of nodes). Pull requests welcome!
It uses etcd to coordinate the bootstrapping of a Consul cluster on CoreOS. It runs Consul inside Docker containers (as nature intended) using progrium's excellent Consul Docker image.
BSD
Content type
Image
Digest
Size
30.1 MB
Last updated
over 10 years ago
docker pull yummly/consul-coreos