Bala
Bala

Reputation: 1148

Kubernetes master node is down after restarting host machine

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 ?

Upvotes: 2

Views: 9693

Answers (1)

Vit
Vit

Reputation: 8481

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.

Upvotes: 5

Related Questions