Dynamic cluster management for etcd
50K+
This container serves to assist in the creation of an etcd (2.x) cluster from an AWS or Openstack auto scaling group. It writes a file to /etc/sysconfig/etcd-peers that contains parameters for etcd:
new or existingThis file can then be loaded as an EnvironmentFile in an etcd2 drop-in to properly configure etcd2:
[Service]
EnvironmentFile=/etc/sysconfig/etcd-peers
get the instance id and ip from amazon/openstack
fetch the autoscaling group this machine belongs to
obtain the ip of every member of the auto scaling group
for each member of the autoscaling group detect if they are running etcd and if so who they see as members of the cluster
if no machines respond OR there are existing peers but my instance id is listed as a member of the cluster
else
docker run -v /etc/sysconfig/:/etc/sysconfig/ ocadotechnology/etcd-dynamic-cluster
Environment Variables
This work is heavily based on https://github.com/MonsantoCo/etcd-aws-cluster We've rewritten it in Python so we can more easily add support for different cloud providers
Content type
Image
Digest
Size
51.2 MB
Last updated
about 8 years ago
docker pull ocadotechnology/etcd-dynamic-cluster