kubelet Startup Error:
"Failed to run kubelet" err="failed to run Kubelet: misconfiguration: kubelet cgroup driver: \"cgrou...: \"systemd\"" systemctl status kubelet [root@k8s-node1 kubernetes]# systemctl status kubelet ● kubelet.service - Kubernetes Kubelet Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since 一 2022-03-21 15:29:19 CST; 23s ago Process: 30267 ExecStart=/usr/bin/kubelet (code=exited, status=1/FAILURE) Main PID: 30267 (code=exited, status=1/FAILURE) 3月 21 15:29:19 k8s-node1 kubelet[30267]: E0321 15:29:19.200485 30267 server.go:302] "Failed to run kubelet" err="failed to run Kubelet: misconfiguration: kubelet cgroup driver: \"cgrou...: \"systemd\"" 3月 21 15:29:19 k8s-node1 systemd[1]: kubelet.service: main process exited, code=exited, status=1/FAILURE 3月 21 15:29:19 k8s-node1 systemd[1]: Unit kubelet.service entered failed state. 3月 21 15:29:19 k8s-node1 systemd[1]: kubelet.service failed. 3月 21 15:29:19 k8s-node1 systemd[1]: kubelet.service holdoff time over, scheduling restart. 3月 21 15:29:19 k8s-node1 systemd[1]: Stopped Kubernetes Kubelet. 3月 21 15:29:19 k8s-node1 systemd[1]: start request repeated too quickly for kubelet.service 3月 21 15:29:19 k8s-node1 systemd[1]: Failed to start Kubernetes Kubelet. 3月 21 15:29:19 k8s-node1 systemd[1]: Unit kubelet.service entered failed state. 3月 21 15:29:19 k8s-node1 systemd[1]: kubelet.service failed. Hint: Some lines were ellipsized, use -l to show in full.
Solution:
Remove native.cgroupdriver=systemd from the docker configuration file or change systemd to cgroupfs
vim /etc/docker/daemon.json { "exec-opts": ["native.cgroupdriver=cgroupfs"] } systemctl daemon-reload systemctl enable kubelet systemctl restart kubelet systemctl status kubelet
Read More:
- How to Solve kubelet starts error (k8s Cluster Restarted)
- Node Kubelet Error: node “xxxxx“ not found [How to Solve]
- [Solved] kubelet Startup Error: cannot find network namespace for the terminated container
- [Solved] Kubeadm join Timeout error execution phase kubelet-start: error uploading crisocket: timed out waiting
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- [Solved] Failed to register: Error: Failed to get admin…. run enrollAdmin.js
- ubuntu docker dm_task_run failed error [How to Solve]
- [Solved] error: failed to run custom build command for `librocksdb-sys v6.17.3`
- [Solved] Linux Start jar Error: nohup: failed to run command ‘java‘: No such file or directory
- [Solved] Docker failed to start daemon: error initializing graphdriver: driver not supported
- Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit
- [Solved] k8s kubeadmin init Error: http://localhost:10248/healthz‘ failed
- Failed to connect to driver at XXXXXXx
- Springboot running shows application run failed [How to Solve]
- How to Solve k8s Nodal issues: /sys/fs/cgroup/memory/docker: no space left on device\““: unknown.
- [Solved] K8s Initialize Error: failed with error: Get “http://localhost:10248/healthz“
- SpringBoot startup error Failed to determine a suitable driver class
- [Solved] Docker Error: driver failed programming external connectivity on endpoint
- How to Solve Android Studio run main() Method Error
- [Solved] docker: Error response from daemon: driver failed programming external connectivity on endpoint mysql-test …