How to switch kubectl clusters between gcloud and minikube

后端 未结 14 1153
再見小時候
再見小時候 2021-01-29 19:01

I have Kubernetes working well in two different environments, namely in my local environment (MacBook running minikube) and as well as on Google\'s Container Engine (GCE, Kubern

14条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 19:48

    I use kubeswitch (disclaimer: I wrote the tool) that can be used just like kubectx, but is designed for a large number of kubeconfig files. If you have to deal with hundreds or thousands of kubeconfig files, this tool might be useful to you, otherwise kubectx or kubectl config use-context might be sufficient.

    For instance, it adds capabilities like reading from vault, hot reload while searching, and an index to speed up subsequent searches.

    You can install it from here.

提交回复
热议问题