client: etcd cluster is unavailable or misconfigured
来源:4-10 Docker Overlay网络和etcd实现多机容器通信
水牛_0001
2019-01-28
node2200:
nohup etcd --name node2200 --initial-advertise-peer-urls http://10.0.2.16:2380
–listen-peer-urls http://10.0.2.16:2380
–listen-client-urls http://10.0.2.16:2379,http://127.0.0.1:2379
–advertise-client-urls http://10.0.2.16:2379
–initial-cluster-token etcd-cluster
–initial-cluster node2200=http://10.0.2.16:2380,node2202=http://10.0.2.18:2380
–initial-cluster-state new &
node2202:
nohup etcd --name node2202 --initial-advertise-peer-urls http://10.0.2.18:2380
–listen-peer-urls http://10.0.2.18:2380
–listen-client-urls http://10.0.2.18:2379,http://127.0.0.1:2379
–advertise-client-urls http://10.0.2.18:2379
–initial-cluster-token etcd-cluster
–initial-cluster node2200=http://10.0.2.16:2380,node2202=http://10.0.2.18:2380
–initial-cluster-state new &
检查cluster状态
etcdctl cluster-health
Error: client: etcd cluster is unavailable or misconfigured
error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused
error #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout
1回答
-
麦兜搞IT
2019-01-30
您看一下后台进程,etcd的两个进程都在么?另外您两个node的防火墙都关闭了吧,这两个node是什么机器呢,虚拟机还是could的机器
032019-04-12
相似问题