kubeswitch
is a tool that allows you to switch between Kubernetes clusters in a simple and fast way. It is a lightweight alternative to kubectx and kubeswitch
Actually, I build this project for myself. I wanted to switch between Kubernetes clusters in a simple way. I didn't need any other features. So I build this tool.
If you need more features, you should consider using kubectx or kubeswitch instead of this tool. Both are great tools with more features.
go install github.com/anilsenay/kubeswitch@latest
kubeswitch
kubeswitch [current | --current]
kubeswitch
uses the KUBECONFIG
environment variable to find the Kubernetes configuration file. If you don't set the KUBECONFIG
environment variable, kubeswitch
will use the default Kubernetes configuration file (~/.kube/config
).
Also you can set it manually with --config
flag.
kubeswitch --config=/path/to/kubeconfig