首页 新闻 会员 周边

k8s control-plane 加入集群卡在"Waiting for the new etcd member to join the cluster"

0
悬赏园豆:30 [已解决问题] 解决于 2022-05-21 08:37

将1台服务器作为 control-plane 加入高可用集群,kubeadm join 命令加入的过程中在加入 etcd 集群时卡住,而且造成已有的 control-plane 上 etcd pod 无法启动,请问如何解决?

[etcd] Announced new etcd member joining to the existing etcd cluster
[etcd] Creating static Pod manifest for "etcd"
[etcd] Waiting for the new etcd member to join the cluster. This can take up to 40s
[kubelet-check] Initial timeout of 40s passed.
问题补充:

对比2台 control-plane 的 /etc/kubernetes/manifests/etcd.yaml,发现 initial-cluster 参数不一致

一个是

- --initial-cluster=kube-master0=https://10.0.9.171:2380

一个是

- --initial-cluster=kube-master0=https://10.0.9.171:2380,kube-master1=https://10.0.9.215:2380

修改为一样后问题依旧

dudu的主页 dudu | 高人七级 | 园豆:31007
提问于:2022-05-20 16:49

同样的服务器以 worker node 身份可以正常加入集群

dudu 1年前
< >
分享
最佳答案
0

是 etcd 证书问题引起的,详见 排查 Kubernetes 集群无法加入 control-plane 的问题

dudu | 高人七级 |园豆:31007 | 2022-05-21 08:37
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册