Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass credentials to GKE-DEPLOY #965

Open
nitishxp opened this issue Dec 7, 2023 · 1 comment
Open

How to pass credentials to GKE-DEPLOY #965

nitishxp opened this issue Dec 7, 2023 · 1 comment
Labels
wai Works As Intended

Comments

@nitishxp
Copy link

nitishxp commented Dec 7, 2023

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 nitishxp added the bug label Dec 7, 2023
@chitrangpatel
Copy link
Collaborator

chitrangpatel commented Feb 12, 2024

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>

@haroonc haroonc added wai Works As Intended and removed bug labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wai Works As Intended
Projects
None yet
Development

No branches or pull requests

3 participants