cloud-builders
cloud-builders copied to clipboard
How to pass credentials to GKE-DEPLOY
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.
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>