Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to load kubelet config file

hy folks

after updating my server, I can't restart kubernetes.

Feb  6 10:34:26 chgvas99 kubelet: F0206 10:34:26.662744   27634 server.go:189] 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
Feb  6 10:34:26 chgvas99 systemd: kubelet.service: main process exited, code=exited, status=255/n/a
Feb  6 10:34:26 chgvas99 systemd: Unit kubelet.service entered failed state.
Feb  6 10:34:26 chgvas99 systemd: kubelet.service failed.

i checked on the directory and indeed there is no config.yaml i've the same error on my nodes i cant restart them

server : 3.10.0-957.5.1.el7.x86_64

kubernetes : Major:"1", Minor:"13", GitVersion:"v1.13.3" GoVersion:"go1.11.5"

like image 612
morla Avatar asked Oct 28 '25 18:10

morla


1 Answers

I would recommend runninng 'kubeadm-init' to reinitialise the cluster. Also please make sure you '/var' directory is not full. Please see this link for more information about 'kubeadm init' command.

like image 170
John Mathew Avatar answered Oct 30 '25 10:10

John Mathew



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!