加入节点、初始化节点发现出现这个错
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
成功了
世界和平