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
kubeconfig
andnamespace
- use
kubeconfig
with relative path without worrying switching directories - show you the
kubeconfig
file name andnamespace
in the shell prompt
Here is a simple demo.
- Clone this repository
- Copy
k-use
to somewhere in yourPATH
. k-use [-h] | [-q] | [-k kubeconfig] [-n namespace]