https://github.com/danielb42/kubeswitch
visually select kubernetes context/namespace from tree
https://github.com/danielb42/kubeswitch
context k8s kubectl kubernetes namespace switch
Last synced: 5 months ago
JSON representation
visually select kubernetes context/namespace from tree
- Host: GitHub
- URL: https://github.com/danielb42/kubeswitch
- Owner: danielb42
- License: mit
- Created: 2018-10-10T19:00:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-18T09:28:15.000Z (about 1 year ago)
- Last Synced: 2025-08-14T14:39:02.979Z (10 months ago)
- Topics: context, k8s, kubectl, kubernetes, namespace, switch
- Language: Go
- Homepage:
- Size: 644 KB
- Stars: 25
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubeswitch



[](https://pkg.go.dev/github.com/danielb42/kubeswitch)
[](https://goreportcard.com/report/github.com/danielb42/kubeswitch)
[](https://opensource.org/licenses/MIT)
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](https://github.com/danielb42/kubeswitch/releases/latest)
## 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 ` | switch to namespace in current context quickly |
| `kubeswitch ` | switch to context/namespace |
| `kubeswitch .` | switch to `default` namespace of context |