A kubectl
plugin to validate and test kubeconfigs.
Via Krew (Recommended):
$ kubectl krew install config-doctor
Via Cargo:
$ cargo install kubectl-config-doctor
If you're having issues connecting to a Kubernetes cluster, there's a good chance that the problem lies in your kubeconfig file.
kubectl-config-doctor
is a tool that can help you diagnose common issues with your kubeconfig file, such as:
- Duplicate contexts/clusters/users
- Missing contexts/clusters/users
- Incorrectly formatted kubeconfig files
- Unreachable proxy api
- Unreachable cluster api
- Invalid authentication methods
- Files that don't exist
- ... and more!
$ kubectl config-doctor
MIT