1. NodeNotReady#
1.1 Image garbage collection failed once#
参考地址
报错:
代码语言:javascript复制# kubectl describe node k8s-node01
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Starting 11m kubelet Starting kubelet.
Normal NodeHasSufficientMemory 11m kubelet Node k8s-node01 status is now: NodeHasSufficientMemory
Normal NodeHasNoDiskPressure 11m kubelet Node k8s-node01 status is now: NodeHasNoDiskPressure
Normal NodeHasSufficientPID 11m kubelet Node k8s-node01 status is now: NodeHasSufficientPID
Normal NodeAllocatableEnforced 11m kubelet Updated Node Allocatable limit across pods
# journalctl -u kubelet | grep garbage
Mar 06 09:50:33 k8s-node01 kubelet[45471]: E0306 09:50:33.106476 45471 kubelet.go:1343] "Image garbage collection failed once. Stats initialization may not have completed yet" err="failed to get imageFs info: unable to find data in memory cache"
解决:
- 未部署CNI组件
- docker镜像或容器未能正确删除导致的
docker system prune
systemctl stop kubelet
systemctl stop docker
systemctl start docker
systemctl start kubelet