etcd 配置
2026/6/6 13:09:28 网站建设 项目流程

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

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询