How to switch kubectl clusters between gcloud and minikube

后端 未结 14 1127
再見小時候
再見小時候 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 20:07

    You can switch from local (minikube) to gcloud and back with:

    kubectl config use-context CONTEXT_NAME

    to list all contexts:

    kubectl config get-contexts

    You can create different enviroments for local and gcloud and put it in separate yaml files.

提交回复
热议问题