name: node1
data-dir: "/etcd/data"
#监听URL,用于与其他节点通讯
listen-peer-urls: "http://172.17.217.142:2380" #注意这里是服务器内网ip,通过内网启用的端口服务
list of URLs to listen on for client traffic
listen-client-urls: "http://127.0.0.1:2379,http://172.17.217.142:2379" #注意这里是服务器内网ip
#list of this member's client URLs to advertise to the public
advertise-client-urls: "http://121.43.131.181:2379,http://127.0.0.1:2379" #外网ip,对外暴露的端口
initial-advertise-peer-urls: 'http://121.43.131.181:2380' #外网ip,对外暴露的端口
initial-cluster: node1=http://121.43.131.181:2380,node2=http://121.43.131.84:2380 #外网ip,对外暴露的端口
initial-cluster-token: etcd-cluster
initial-cluster-state: new