repositorypackage
1.5.8
Repository: https://github.com/danielb42/kubeswitch.git
Documentation: pkg.go.dev
# README
kubeswitch
Switch your current kubernetes context and namespace graphically by selecting from a tree.
kubeswitch talks to the kubernetes API and does not depend on kubectl.
Note for Non-Admin Users: If you are a cluster tenant without API-permission to list namespaces, kubeswitch won't work for you (as it can't retrieve available namespaces). Sorry, there's not much we can do about that.
Install
Available for Linux and MacOS: Latest Release
Config
Read from the default location ~/.kube/config
. If not present, the location is read from environment variable KUBECONFIG
(remember to export
). That env variable can contain multiple locations separated by :
from where configs are merged together.
Run
Run... | to... |
---|---|
kubeswitch | select context/namespace graphically |
kubeswitch <namespace> | switch to namespace in current context quickly |
kubeswitch <context> <namespace> | switch to context/namespace |
kubeswitch <context> . | switch to default namespace of context |