Skip to content

ashleyschuett/kubeconfig-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeconfig-cleanup

About

Description

A kubectl plugin to clean up your kubeconfig file

Installation

Add kubeconfig-cleanup to your kubectl plugins directory. For more information about how plugins are loaded, please see the official documentation.

export BINARY=kubeconfig-cleanup_1.0.1_Linux_x86_64.tar.gz
curl -LO -o cleanup https://github.com/ashleyschuett/kubeconfig-cleanup/releases/download/v1.0.1/$BINARY && \
curl -LO https://raw.githubusercontent.com/ashleyschuett/kubeconfig-cleanup/v1.0.1/plugin.yaml && \
mkdir ~/.kube/plugins/kubeconfig-cleanup && mv cleanup plugin.yaml

Usage

Parse through kubeconfig in default directory

kubectl plugin kubeconfig-cleanup

Parse through kubeconfig at custom location

kubectl plugin kubeconfig-cleanup --kubeconfig /custom/kubeconfig/location

About

Get rid of non responsive clusters, and unused users

Resources

License

Stars

Watchers

Forks

Packages

No packages published