# 列出etcd所有节点
etcdctl member list
# 删除故障节点
etcdctl member remove c13845537406e22f
# 修改配置
sed -i "s#initial-cluster-state: 'new'#initial-cluster-state: 'existing'" /etc/etcd/etcd.config.yml
# 清理节点数据(下面为默认路径,请根据你的设置修改)
rm -rf /var/lib/etcd/member
etcdctl member add K8s-2 https://192.168.216.242:2380
systemctl restart etcd
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。