etcd集群部署

./etcd --name infra0 --initial-advertise-peer-urls http://10.15.45.185:2380 \
--listen-peer-urls http://10.15.45.185:2380 \
--listen-client-urls http://10.15.45.185:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://10.15.45.185:2379 \
--initial-cluster-token etcd-cluster-1 \
--initial-cluster infra0=http://10.15.45.185:2380,infra1=http://10.15.45.195:2380,infra2=http://10.15.45.194:2380 \
--initial-cluster-state new

./etcd --name infra1 --initial-advertise-peer-urls http://10.15.45.195:2380 \
--listen-peer-urls http://10.15.45.195:2380 \
--listen-client-urls http://10.15.45.195:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://10.15.45.195:2379 \
--initial-cluster-token etcd-cluster-1 \
--initial-cluster infra0=http://10.15.45.185:2380,infra1=http://10.15.45.195:2380,infra2=http://10.15.45.194:2380 \
--initial-cluster-state new

./etcd --name infra2 --initial-advertise-peer-urls http://10.15.45.194:2380 \
--listen-peer-urls http://10.15.45.194:2380 \
--listen-client-urls http://10.15.45.194:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://10.15.45.194:2379 \
--initial-cluster-token etcd-cluster-1 \
--initial-cluster infra0=http://10.15.45.185:2380,infra1=http://10.15.45.195:2380,infra2=http://10.15.45.194:2380 \
--initial-cluster-state new

posted @ 2019-03-14 16:22  云承宇  阅读(214)  评论(0编辑  收藏  举报