I setup my cluster with one master and two nodes. I can create pods on nodes. If my master node fails (reboot) when I use kubeadm reset and then kubeadm init I lost all my pods, deployments, services.
Am I losting my pods because reset? What should I do?
Some similar questions:
https://stackpointcloud.com/community/question/how-do-i-restart-my-kubernetes-cluster
kubeadm reset
on the master deletes all configuration (files and a database too). There is no way back.
You should not run kubeadm init
when you reboot the master. kubeadm init
is a one off action to bootstrap the cluster. When the master is rebooted your OS's init system (systemd, upstart, ...) should start kubelet
which in turn starts the master components (as containers). An exception is if your cluster is self-hosting