Skip to content

danielb42/kubeswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeswitch

Build Tag Go Version PkgGoDev Go Report Card License: 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.

Demo

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