How to switch kubectl clusters between gcloud and minikube

后端 未结 14 1335
再見小時候
再見小時候 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条回答
  •  梦如初夏
    2021-01-29 19:54

    To get all context

    C:\Users\arun>kubectl config get-contexts
    

    To get current context

    C:\Users\arun>kubectl config current-context
    

    To switch context

    C:\Users\arun>kubectl config use-context 
    

提交回复
热议问题