Kubernetes master node is down after restarting host machine

7/17/2018

I have installed a Kubernetes cluster using kubeadm. It works fine. But accidentally I restarted my host machine where master was up. After the restart the kubelet was not running . I had to do

Kubeadm reset

And

Kubeadm init

What should I do to bring my cluster up automatically after a host machine restart ?

-- Balakumar Ezhilmaran
kubernetes

1 Answer

7/17/2018

There is no need to do kubeadm reset and kubeadm init in such cases. To start kubelet service during the current session use:

systemctl start kubelet 

To start service automatically during the boot, you must enable it using:

systemctl enable kubelet

Keep in mind that if you are running above commands as a non-root user, you will have to use sudo.

-- VKR
Source: StackOverflow