# Failed to load kubelet config file after os update

**URL:** <https://discuss.kubernetes.io/t/failed-to-load-kubelet-config-file-after-os-update/4521>\
**Category:** General Discussions\
**Created:** [February 7, 2019, 10:47am UTC](https://discuss.kubernetes.io/t/failed-to-load-kubelet-config-file-after-os-update/4521 "2019-02-07T10:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![have\_a\_good\_time](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/have_a_good_time/32/1538_2.png) [@have\_a\_good\_time](https://discuss.kubernetes.io/u/have_a_good_time)\
**Post date:** [February 7, 2019, 10:47am UTC](https://discuss.kubernetes.io/t/failed-to-load-kubelet-config-file-after-os-update/4521/1 "2019-02-07T10:47:06Z")

</div>

Hy everyone  
After updating the os on my server (master & nodes), I can’t restart kubernetes.  
i’ve an error who said cant find the file **/var/lib/kubelet/config.yam** on all of my server (master & nodes). i dont understand how it’s possible than the file was removed.

> [Feb 6 10:34:25 chgvascldp99 agent: 2019-02-06 10:34:25 CET | ERROR | (domain\_forwarder.go:106 in retryTransactions) | Dropped 2 transactions in this retry attempt: 2 for exceeding the retry queue size limit of 30, 0 because the workers are too busy  
> Feb 6 10:34:25 chgvascldp99 agent: 2019-02-06 10:34:25 CET | ERROR | (config\_poller.go:121 in collect) | Unable to collect configurations from provider kubernetes: permanent failure in kubeutil: retry number exceeded  
> Feb 6 10:34:26 chgvascldp99 systemd: kubelet.service holdoff time over, scheduling restart.  
> Feb 6 10:34:26 chgvascldp99 systemd: Stopped kubelet: The Kubernetes Node Agent.  
> Feb 6 10:34:26 chgvascldp99 systemd: Started kubelet: The Kubernetes Node Agent.  
> Feb 6 10:34:26 chgvascldp99 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 chgvascldp99 systemd: kubelet.service: main process exited, code=exited, status=255/n/a  
> Feb 6 10:34:26 chgvascldp99 systemd: Unit kubelet.service entered failed state.  
> Feb 6 10:34:26 chgvascldp99 systemd: kubelet.service failed.]

Do you know or have any advice to help me to get back the file ?  
What do you think if i run **kubeadm init** on the master they’ll come back or he’ll remove me from the conf ?

server : **3.10.0-957.5.1.el7.x86\_64**  
kubectl : **Major:“1”, Minor:“13”, GitVersion:“v1.13.3” GoVersion:“go1.11.5”**  
Kubernetes : **v1.13.3**

Thanks for your help and your advice

---

<div class="post-metadata">

**Author:** ![Sparc\_Capgemini](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/sparc_capgemini/32/3887_2.png) [@Sparc\_Capgemini](https://discuss.kubernetes.io/u/Sparc_Capgemini)\
**Post date:** [October 10, 2019, 3:07pm UTC](https://discuss.kubernetes.io/t/failed-to-load-kubelet-config-file-after-os-update/4521/2 "2019-10-10T15:07:49Z")

</div>

Try this below config

cat \> /etc/systemd/system/kubelet.service \<\<-EOF  
[Unit]  
Description=Kubernetes Kubelet  
Documentation=https://github.com/kubernetes/kubernetes

[Service]  
ExecStart=/usr/bin/kubelet   
–bootstrap-kubeconfig=/tmp/bootstrap-kubeconfig   
–kubeconfig=/var/lib/kubelet/kubeconfig   
–register-node=true   
–v=2  
Restart=on-failure  
StandardOutput=file:/var/kubeletlog1.log  
StandardError=file:/var/kubeletlog2.log  
RestartSec=5

[Install]  
WantedBy=multi-user.target

EOF
