The credentials to access a Kubernetes cluster with kubectl are contained in the kubeconfig file, typically located at ~/.kube/config . What if this file were lost due to a crashed hard drive, accidental deletion, or other cause? How do you recover your kubeconfig file? Usually there will be at least two ways to recover the file: – by manually reconstructing it piece by piece – […]