failed to load kubelet config file

2/6/2019

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"

-- morla
google-kubernetes-engine
kubernetes

1 Answer

2/11/2019

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.

-- John Mathew
Source: StackOverflow