kubernetes 问题记录(1)

使用kubeadm init安装k8s,卡在如下界面:

[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.

翻看日志,找不到任何报错,只有如下输出:

Dec 26 00:18:07 ip-172-31-0-11.ap-southeast-1.compute.internal kubelet[21555]: I1226 00:18:07.710297   21555 kubelet_node_status.go:286] Setting node annotation to enable volume controller attach/detach

最后解决方法如下:

cp /10-kubeadm.conf /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
systemctl daemon-reload
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容