ISSUES FACED DURING REBUILDING A KUBERNETES CLUSTER
We had a Kubernetes POC cluster with version 1.18. This cluster got corrupted during experimentation by our team. Instead of starting with clean slate, which is comparatively easy, we tried to rebuild cluster with existing kubelet, etcd, kubeadm. This post is basically my own reference/notes of the issues faced and their fixes. Issue 1 : kubeadm join failing with below error. This happens only while join control plane nodes not worker nodes. failure loading certificate for CA: couldn’t load the certificate file /etc/kubernetes/pki/ca.crt: open /etc/kubernetes/pki/ca.crt: no such file or directory Solution : Copied following files from node 1 to other control plane nodes /etc/kubernetes/pki/ca.crt /etc/kubernetes/pki/ca.key /etc/kubernetes/pki/sa.key /etc/kubernetes/pki/sa.pub /etc/kubernetes/pki/front-proxy-ca.crt /etc/kubernetes/pki/front-proxy-ca.key Issue 2 : Flannel pods are crashlooping. Found following error continuously in kube-proxy logs.node.go:125] Failed to retrie...