You may need to type many words to switch the kubeconfig and namespace. With this script, you can enjoy following stuffies.
- type fewer words when switching
kubeconfigandnamespace - use
kubeconfigwith relative path without worrying switching directories - show you the
kubeconfigfile name andnamespacein the shell prompt
Here is a simple demo.
- Clone this repository
- Copy
k-useto somewhere in yourPATH
. k-use [-h] | [-q] | [-k kubeconfig] [-n namespace]
