failed to load kubelet config file
18,868
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.
Related videos on Youtube
Author by
morla
Updated on June 04, 2022Comments
-
morla almost 2 years
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"
-
Laksitha Ranasingha about 5 yearsWhat about this ?
error: open /var/lib/kubelet/config.yaml: no such file or directory
-
morla about 5 yearsi checked if the file config.yaml was here but not !
-
morla about 5 yearsby the way the server was setup with kubeadm
-
mdaniel about 5 yearsYou have not specified if "my server" means the master, or a worker node, or whether this machine ever was working and mysteriously stopped or what. But, having said that, you might be able to just
rm -rf /etc/kubernetes /var/lib/kubelet
and re-runkubeadm join ${the_master} --token ${the_token}
and reprovision the node -
morla about 5 yearsthanks for your reply @matthew l Daniel . the problems happened on all of my k8s ! master and nodes after i've update the os and restart it . i lost the file config.yaml
-
morla about 5 yearsi dont know how to got back it . can i run on the maste kubeadm init to generate the config.yaml or not ? or do i ve to run another command ??
-