etcd集群故障处理 etcdmain: error validating peerURLs member count is unequal
程序员文章站
2022-03-07 13:29:06
...
etcd集群的一个节点挂了,从集群中剔除有问题的节点,启动的命令-initial-cluster-state 由"new" 改成"existing",报错:
etcdmain: error validating peerURLs {ClusterID:5cd053431dc82383 Members:[&{ID:942cc895355ab90a RaftAttributes:{PeerURLs:[https://192.168.16.143:2380]} Attributes:{Name:kubeadm-node3 ClientURLs:[https://192.168.16.143:2379]}} &{ID:61d2bc9e6c3052e4 RaftAttributes:{PeerURLs:[https://192.168.16.144:2380]} Attributes:{Name:kubeadm-node4 ClientURLs:[https://192.168.16.144:2379]}}] RemovedMemberIDs:[]}: member count is unequal
解决:
在启动新节点之前,必须把新节点接入集群,然后在启动新节点,,否则会出现如上报错