kubectl-cred
is a kubernetes plugin to which switch to contexts and namespaces and clusters using an interactive CLI.
kubectl-cred
is a kubernetes plugin.
This plugin can switch not only context, namespace in k8s using an interactive UI, but also show all of namespaces on clusters and current context information beautifully.
# Switch context using an interactive CLI.
kubectl cred ctx
# Switch namespace using an interactive CLI.
kubectl cred ns
# Show your all of contexts information formatted tree.
kubectl cred ls
# Show your current context information.
kubectl cred current
# Rename context name in k8s config, using an interactive CLI.
kubectl cred rename
Support x86_64
$ kubectl krew index add gjbae1212 https://github.com/gjbae1212/kubectl-cred.git
$ kubectl krew install gjbae1212/cred
# homebrew
$ brew tap gjbae1212/kubectl-cred
$ brew install kubectl-cred
# mac
wget https://github.com/gjbae1212/kubectl-cred/releases/download/v0.1.7/kubectl-cred_v0.1.7_Darwin_x86_64.tar.gz
# linux
wget https://github.com/gjbae1212/kubectl-cred/releases/download/v0.1.7/kubectl-cred_v0.1.7_Linux_x86_64.tar.gz
# windows
wget https://github.com/gjbae1212/kubectl-cred/releases/download/v0.1.7/kubectl-cred_v0.1.7_Windows_x86_64.tar.gz
This project is following The MIT.