Created
October 12, 2015 23:20
-
-
Save aespinosa/428efb1a57152328c5ae to your computer and use it in GitHub Desktop.
Launch an etcdcluster manually one by one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IP address of the local VM's network | |
docker run --net=host -d --name etcd00 etcd --name etcd00 \ | |
--listen-client-urls http://0.0.0.0:4001 \ | |
--advertise-client-urls http://172.16.132.237:4001 \ | |
--listen-peer-urls http://0.0.0.0:7001 | |
etcdctl member update xxxxx http://172.16.132.237:7001 | |
etcdctl member add etcd01 http://172.16.132.237:7101 | |
docker run -d --net=host --name etcd01 etcd --name etcd01 \ | |
--listen-client-urls http://0.0.0.0:4101 \ | |
--advertise-client-urls http://172.16.132.237:4101 \ | |
--listen-peer-urls http://0.0.0.0:7101 \ | |
--initial-cluster etcd00=http://172.16.132.237:7001,etcd01=http://172.16.132.237:7101 \ | |
--initial-advertise-peer-urls http://172.16.132.237:7101 \ | |
--initial-cluster-state=existing | |
etcdctl member add etcd02 http://172.16.132.237:7201 | |
docker run -d --net=host --name etcd02 etcd --name etcd02 \ | |
--listen-client-urls http://0.0.0.0:4201 \ | |
--advertise-client-urls http://172.16.132.237:4201 \ | |
--listen-peer-urls http://0.0.0.0:7201 \ | |
--initial-cluster etcd00=http://172.16.132.237:7001,etcd01=http://172.16.132.237:7101,etcd02=http://172.16.132.237:7201 \ | |
--initial-advertise-peer-urls http://172.16.132.237:7201 \ | |
--initial-cluster-state=existing | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment