Itay Barber
Itay Barber

Reputation: 63

Deploying via Skaffold dev to a new GCP account fails cause tries Skaffold tries to deploy to old GCP account

I had a project that I deployed to GCP via Skaffold. Now I had to change the GCP user, so I created a project in GCP of the new account ([email protected])

I connected via gcloud login to the new user: enter image description here

I created a new context on Kubernetes associated with that account and it's project enter image description here

In addition, I changed all yaml files in my project to have the correct project id

But when I try to deploy via Skaffold, it still tries to connect to the old account. enter image description here

Do you know how can I fix it?

Upvotes: 0

Views: 413

Answers (1)

Itay Barber
Itay Barber

Reputation: 63

I managed to solve the issue by removing the old user with the command

gcloud auth revoke USERNAME

In addition I changed my gcloud default credentials via:

gcloud auth application-default login

Upvotes: 1

Related Questions