Properly restarting nodes
I'm doing my labs using two VirtualBox Ubuntu Servers on local.
It works as expected, but if I have to stop the training and shut down nodes, I cannot figure out how to properly restart them.
I think it would be great to include this part on the training.
I try to do like this:
sudo swapoff -a
sudo kubeadm reset
sudo kubeadm init --kubernetes-version 1.16.1 --pod-network-cidr 192.168.0.0/16
and then, as stated in last command output:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
But in the best scenario I get new credentials so I am not able to relink the worker node...
Could somebody please provide a straight process for this?
Thank you and keep rocking !