etcd 集群部署

name: etcd-1
data-dir: /data/etcd/data
listen-client-urls: http://192.168.1.50:2379,http://127.0.0.1:2379
advertise-client-urls: http://192.168.1.50:2379,http://127.0.0.1:2379
listen-peer-urls: http://192.168.1.50:2380
initial-advertise-peer-urls: http://192.168.1.50:2380
initial-cluster: etcd-1=http://192.168.1.50:2380,etcd-2=http://192.168.1.83:2380,etcd-3=http://192.168.1.186:2380
initial-cluster-token: etcd-cluster-token
initial-cluster-state: new

name: etcd-2
data-dir: /data/etcd/data
listen-client-urls: http://192.168.1.83:2379,http://127.0.0.1:2379
advertise-client-urls: http://192.168.1.83:2379,http://127.0.0.1:2379
listen-peer-urls: http://192.168.1.83:2380
initial-advertise-peer-urls: http://192.168.1.83:2380
initial-cluster: etcd-1=http://192.168.1.50:2380,etcd-2=http://192.168.1.83:2380,etcd-3=http://192.168.1.186:2380
initial-cluster-token: etcd-cluster-token
initial-cluster-state: new

name: etcd-3
data-dir: /data/etcd/data
listen-client-urls: http://192.168.1.186:2379,http://127.0.0.1:2379
advertise-client-urls: http://192.168.1.186:2379,http://127.0.0.1:2379
listen-peer-urls: http://192.168.1.186:2380
initial-advertise-peer-urls: http://192.168.1.186:2380
initial-cluster: etcd-1=http://192.168.1.50:2380,etcd-2=http://192.168.1.83:2380,etcd-3=http://192.168.1.186:2380
initial-cluster-token: etcd-cluster-token
initial-cluster-state: new

/data/etcd/etcd –config-file=/etc/etcd/etcd.conf &

赞(0) 打赏
未经允许不得转载:广杰博客 » etcd 集群部署
分享到: 更多 (0)