k8s kubeadm join 加入集群和init报错Setting node annotation to enable volume controller attach/detach

加入节点、初始化节点发现出现这个错

Unfortunately, an error has occurred:
	timed out waiting for the condition

This error is likely caused by:
	- The kubelet is not running
	- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
	- 'systemctl status kubelet'
	- 'journalctl -xeu kubelet'

在这里插入图片描述

根据命令查kubelet日志出现以下

在这里插入图片描述
直接删除

rm -rf /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

重新加入

kubeadm join hadoop100.vip:16443 --token vyfxn4.95q57l1dqlpxj5wb --discovery-token-ca-cert-hash sha256:dcdb1fac406137f5f5e478665e29cb7bcdcf578f14bac331d30431c3f5b5cd87 --control-plane

在这里插入图片描述

成功了
在这里插入图片描述
世界和平

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值