Kubeadm: fresh kubeadm 1.5 install fails due to existing /var/lib/kubelet

Created on 3 May 2017  路  11Comments  路  Source: kubernetes/kubeadm

If you follow the kubeadm 1.5 install instructions to the T your master won't succesfully init because /var/lib/kubelet already exists. seems /var/lib/kubelet is created when installing kubelet in this line

sudo apt-get --y install kubectl=1.5.3-00 kubelet=1.5.3-00 kubernetes-cni=0.3.0.1-07a8a2-00

So users will need to kubeadm reset before their first kubeadm init.

arereleasing kinbug prioritbacklog

Most helpful comment

I repoduced it with a centos 7 and kubeadm v1.8 but kubeadm reset helps...

All 11 comments

Problem still present in 1.6.3.

@dgoodwin Did you ever find out why this race condition exists?

@timothysc Have you seen/looked into this?

I'm hitting this in the 1.6.4 version of kubeadm as well.

same here.

Can any of you reproduce this with kubeadm v1.7?

I repoduced it with a centos 7 and kubeadm v1.8 but kubeadm reset helps...

https://github.com/kubernetes/kubernetes/pull/53317 should also help with this (since the kubelet was saving its PKI assets in /var/run/kubelet). Hopefully when we have that in kubeadm, we can close this issue after a suitable waiting period (unless anybody runs into related issues).

I'm having the same issue and cannot start kubeadm

kubectl-1.8.0-0.x86_64
kubelet-1.8.0-0.x86_64
kubeadm-1.8.0-1.x86_64
kubernetes-cni-0.5.1-0.x86_64

I'm on CentOS7
Any workarounds?

I found a solution for me. The problem was the swap
So I executed swapoff -a then kubeadm reset and finally kubeadm init
Hope it helps

v1.5 isn't supported anymore. v1.8.0 had a problem with similar symptoms, but it was fixed in v1.8.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chuckha picture chuckha  路  3Comments

ggee picture ggee  路  4Comments

mlevesquedion picture mlevesquedion  路  3Comments

RakeshNagarajan picture RakeshNagarajan  路  4Comments

kvaps picture kvaps  路  3Comments