Name: etcd-aws-cluster
Owner: CoreOS
Description: A container to assist in managing a etcd2 cluster from an Amazon auto scaling group
Created: 2015-08-19 15:02:25.0
Updated: 2016-05-03 08:25:37.0
Pushed: 2015-08-21 15:42:23.0
Homepage: null
Size: 146
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This container serves to assist in the creation of an etcd (2.x) cluster from an AWS auto scaling group. It writes a file to /etc/sysconfig/etcd-peers that contains parameters for etcd:
new
or existing
This file can then be loaded as an EnvironmentFile in an etcd2 drop-in to properly configure etcd2:
vice]
ronmentFile=/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
ave created a CloudFomation script that shows sample usage of this container for creating a simple etcd cluster: https://gist.github.com/tj-corrigan/3baf86051471062b2fb7