安装Kubernetes 1.28报错:The kubelet is not running 报错如下
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'
报错日志如下
11月 28 14:12:22 godlnode kubelet[3307]: E1128 14:12:22.488533 3307 pod_workers.go:1300] "Error syncing pod, skipping" err="failed to \"CreatePodSandbox\" for \"kube-controller-manager-godlnode_kube-system(43951358d04c1af6299c0c9422c22850)\" with CreatePodSandboxError: \"Failed to create sandbox for pod \\\"kube-controller-manager-godlnode_kube-system(43951358d04c1af629
以参考方案无法实现
https://www.jianshu.com/p/4b20e7ea4883
辛苦解答
当前的kubelet服务是正常的
systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Thu 2024-11-28 19:47:56 CST; 17min ago
Docs: https://kubernetes.io/docs/
Main PID: 952 (kubelet)
Tasks: 11 (limit: 2218)
Memory: 101.6M
CPU: 8.586s
kubelet的报错如下
