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 ?
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 kubeletKeep in mind that if you are running above commands as a non-root user, you will have to use sudo.