Manage your Kubernetes client config file easily!
Go to file
Daniel Heitmann 9b18e6f999
Merge pull request #3 from dictvm/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-06-07 15:51:10 +02:00
bin Move over to typescript 2019-03-15 12:05:16 +01:00
docs Update screenshots 2019-03-22 16:59:48 +01:00
src Assign item variable 2019-11-14 15:47:34 +01:00
.gitignore Move over to typescript 2019-03-15 12:05:16 +01:00
.prettierrc Add prettyrc 2019-03-14 16:58:51 +01:00
LICENSE Add License 2019-03-15 11:21:59 +01:00 Update README title 2019-11-14 16:03:21 +01:00
jest.config.js Add first test 2019-03-15 15:20:53 +01:00
package.json Update dependencies 2019-11-14 15:47:24 +01:00
tsconfig.json Prevent building tests to dist 2019-03-15 15:41:08 +01:00
yarn.lock Merge pull request #3 from dictvm/dependabot/npm_and_yarn/lodash-4.17.21 2021-06-07 15:51:10 +02:00

Kubernetes Config File cleanup CLI tool

kube-cleaner-cli is a utility to keep your kubectl config-file in check.

Let's say you're using kops to manage Kubernetes clusters on AWS. You're not upgrading your clusters in-place but instead, you replace your clusters regularly. Maybe you've moved from minikube to Docker's Docker for Desktop. Or you're setting up lots of clusters for clients that you don't need anymore after the contract is done.

There are several valid reasons for your kubectl config to grow.

Of course you can manually clean them up or open $HOME/.kube/config in your text editor and edit YAML by hand, but you're not from the stone age, are you?

kube-cleaner makes it easy to keep track of your clusters, users and contexts and to delete them, as soon as you no longer need them.

screenshot showing first output of the applicaton

screenshot showing second output of the applicaton


yarn global add kube-cleaner


npm install -g kube-cleaner

This assumes your yarn/npm-PATH is setup correctly. Please refer to their docs if kube-cleaner is not an available command after installation.