Kubeswitch is a CLI application that helps you switch kubernetes contexts while keeping all your config clean.
Managing kubernetes contexts can get pretty messy because the context keys often changes on your hosting providers for security purposes.
- Node 10+
- Credentials for your kubernetes hosting platform
$ yarn global add kubeswitch
$ kubeswitch add
Then follow the instructions...
Specifically use kubeswitch --help
if you want to see the commands help because kubeswitch
alone defaults to kubeswitch switch
for convenicence.
Clear your environment so you're ready to use kubeswitch.
Remove one or more selected contexts from your environment.
Save a context under a chosen name.
Switch to the selected context. (This command is the default command if you don't pass any options to kubeswitch)
$ kubeswitch
$ kubeswitch switch
Those two commands do the same thing.