unable to add a new control plane instance to a cluster that doesn‘t have a stable controlPlaneEndpo

unable to add a new control plane instance to a cluster that doesn't have a stable controlPlaneEndpoint address

Please ensure that:
* The cluster has a stable controlPlaneEndpoint address.
* The certificates that must be shared among control plane instances are provided.

翻译过来就是:

无法将新的控制平面实例添加到没有稳定 controlPlaneEndpoint 地址的集群

请确保:
* 集群具有稳定的 controlPlaneEndpoint 地址。
* 提供控制面实例之间必须共享的证书。

解决方法:

1. 查看cm资源

kubectl -n kube-system get cm kubeadm-config -o yaml

如图:确实查不到 controlPlaneEndpoint 字段

2. 添加 controlPlaneEndpoint 字段

kubectl -n kube-system edit cm kubeadm-config
.....
#添加本机地址及端口
controlPlaneEndpoint: 192.168.99.250:6443
.....

3.尝试加入master节点即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值