Assist in the creation of an etcd (2.x) cluster from an AWS auto scaling group
10K+
This container serves to assist in the creation of an etcd (2.x) cluster from an AWS auto scaling group. This is a fork from the upstream Monsanto repo, with a few changes. Much thanks to @tj-corrigan for doing the actual hard work of figuring out how to bootstrap etcd in AWS.
1, 1.0, latest - (master/Dockerfile)$ docker run -v /etc/sysconfig/:/etc/sysconfig/ building5/etcd-aws-cluster
It writes a file to /etc/sysconfig/etcd-peers that contains parameters for
etcd:
ETCD_INITIAL_CLUSTER_STATE
new or existingETCD_NAME
ETCD_INITIAL_CLUSTER
ETCD_INITIAL_ADVERTISE_PEER_URLS
This 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
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
Monsanto has created a CloudFormation script that shows sample usage of this container for creating a simple etcd cluster.
The differences in this fork are:
FROM image is
updated, so we'll keep up to date with security patches.Content type
Image
Digest
Size
29.9 MB
Last updated
over 8 years ago
docker pull building5/etcd-aws-cluster