2 releases

0.3.1 Sep 13, 2024
0.3.0 Sep 13, 2024

#263 in Configuration

50 downloads per month

MIT license

18KB
337 lines

kubectl-config-doctor

A kubectl plugin to validate and test kubeconfigs.

Release License

💻 Install

$ kubectl krew install config-doctor

Via Cargo:

$ 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

$ kubectl config-doctor

✨ Demo

📃 License

MIT

❤️ Acknowledgement

Aptakube

Dependencies

~110MB
~2.5M SLoC