将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
修改为一样后问题依旧
同样的服务器以 worker node 身份可以正常加入集群
– dudu 2年前