There are several points to remember when setting up the cluster with "kubeadm init" and it is clearly documented on the Kubernetes site kubeadm cluster create:
- "kubeadm reset" if you have already created a previous cluster
- Remove the ".kube" folder from the home or root directory
- (Also stopping the kubelet with systemctl will allow for a smooth setup)
- Disable swap permanently on the machine, especially if you are rebooting your linux system
- And not to forget, install a pod network add-on according to the instructions provided on the add on site (not Kubernetes site)
- Follow the post initialization steps given on the command window by kubeadm.
If all these steps are followed correctly then your cluster will run properly.