Currently helm is installing to the wrong cluster on GKE, how can I install to a different cluster?

  • What details or clarity does this need? it's self answered. Apr 13, 2023 at 5:55

1 Answer 1


First make sure the desired cluster is available to you

gcloud container clusters list

Now you need to reconcile that command (which has the data from Google) with your local kubectl, you can do that with

kubectl config get-contexts

If you do not see a matching context, you can add one. The following command adds the context and sets it as the current-context, which is weird for a command called "get-credentials" but that's Google.

gcloud container clusters get-credentials myCluster --region=us-central1

But, if there is already a context in your kubectl that you merely want to switch to you can do that with

kubectl config use-context myContext

For more information see this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.