Kubelet service is not starting

kubelet service is not starting after installation.


Dec 30 13:00:05 target kubelet[7131]: E1230 10:00:05.893781    7131 server.go:205] "Failed to load kubelet config file" err="failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file \"/var/lib/kubelet/config.yaml\", error: open /var/lib/kubelet/config.yaml: no such file or directory" path="/var/lib/kubelet/config.yaml"
Dec 30 13:00:05 target systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Dec 30 13:00:05 target systemd[1]: kubelet.service: Failed with result 'exit-code'.


ubuntu@target:~$ sudo systemctl status kubelet.service
● 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
     Active: activating (auto-restart) (Result: exit-code) since Thu 2021-12-30 10:04:01 -03; 8s ago
       Docs: https://kubernetes.io/docs/home/
   Main PID: 7639 (code=exited, status=1/FAILURE)

Kubeadm: 1.23.1-00
Kubelet: 1.23.1-00
Kubectl: 1.23.1-00
Docker: 20.10.12
Installation Method: kubeadm
Cloud being used: bare-metal
OS: Ubuntu 20.04.3
Kernel: 5.4.0-91-generic
Network: Weaveworks 2.8.1


I’m having the same problem… notice you haven’t got an answer yet. I hope no one thinks our question is too basic to answer… how else do you get started with this stuff?

Could you check that the file:


Exists on the node and if it does paste it here?

any update !