kubelet service is not starting after installation.
Log:
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'.
Status:
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
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2021-12-30 10:04:01 -03; 8s ago
Docs: https://kubernetes.io/docs/home/
Process: 7639 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited>
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