cloud-builders icon indicating copy to clipboard operation
cloud-builders copied to clipboard

How to pass credentials to GKE-DEPLOY

Open nitishxp opened this issue 2 years ago • 1 comments

Hi ,

I am trying to run the gke-deploy image outside the cloud build how can I pass the cluster credentials to get it work.

nitishxp avatar Dec 07 '23 05:12 nitishxp

My understanding is that you need gcloud installed and the environment variable GOOGLE_APPLICATION_CREDENTIALS pointing to your GCP project.

Once you have that set up:

you can pass in the arguments: -c <cluster name> -l <region/zone> -p <GCP projectID> and gke-deploy will get the cluster credentials for you.

Alternatively you can also run the

gcloud container clusters get-credentials ... command before calling the gke-deploy command without the need to pass in -c <cluster name> -l <region/zone> -p <GCP projectID>

chitrangpatel avatar Feb 12 '24 19:02 chitrangpatel