# kubectl-config-doctor A `kubectl` plugin to validate and test kubeconfigs. ![Release](https://img.shields.io/github/v/release/aptakube/kubectl-config-doctor) ![License](https://img.shields.io/github/license/aptakube/kubectl-config-doctor) ## 💻 Install ### Via [Krew](https://github.com/kubernetes-sigs/krew) (Recommended): ```shell $ kubectl krew install config-doctor ``` ### Via [Cargo](https://doc.rust-lang.org/stable/cargo/): ```shell $ cargo install kubectl-config-doctor ``` ## 📝 Intro 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! ## 🚀 Usage ```shell $ kubectl config-doctor ``` ## ✨ Demo ![](./demo.png) ## 📃 License MIT ## ❤️ Acknowledgement Aptakube