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

你可能感兴趣的:(kubernetes 问题记录(1))