A kubectl plugin to clean up your kubeconfig file
Add kubeconfig-cleanup to your kubectl plugins directory. For more information about how plugins are loaded, please see the official documentation.
curl -LO https://github.com/ashleyschuett/kubeconfig-cleanup/releases/download/v1.0.1/cleanup && \
curl -LO https://raw.githubusercontent.com/ashleyschuett/kubeconfig-cleanup/v1.0.1/plugin.yaml && \
mkdir ~/.kube/plugins/kubeconfig-cleanup && mv cleanup plugin.yaml
Parse through kubeconfig in default directory
kubectl plugin kubeconfig-cleanup
Parse through kubeconfig at custom location
kubectl plugin kubeconfig-cleanup --kubeconfig /custom/kubeconfig/location
$ claude mcp add kubeconfig-cleanup \
-- python -m otcore.mcp_server <graph>