KubeTidy Documentation¶
KubeTidy is a kubeconfig management tool for Kubernetes users who need to clean up stale clusters, merge configs, and safely export just the contexts they care about.
You can use KubeTidy in the way that fits your workflow best:
kubetidykubectl kubetidyInvoke-KubeTidy
Why teams use KubeTidy¶
- It removes unreachable clusters and the users and contexts tied to them
- It creates backups before writing unless you run in dry-run mode
- It preserves supported kubeconfig fields instead of rewriting partial configs
- It can merge multiple kubeconfig files without losing remaining entries
- It can export selected contexts into a smaller focused kubeconfig
- It can inspect kubeconfig health with
reportanddoctor