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

error: You must be logged in to the server (the server has asked for the client to provide credentials) #44

Closed
frankvanrest opened this issue Aug 12, 2016 · 1 comment

Comments

@frankvanrest
Copy link

frankvanrest commented Aug 12, 2016

Since this morning we get these errors when trying to use kubectl from this container:

$ echo $SERVICE_ACCOUNT_JSON > key-file.json
$ gcloud auth activate-service-account --key-file key-file.json --project application-europe
Activated service account credentials for: [deployment-from-gitlab@application-europe.iam.gserviceaccount.com]
$ gcloud container clusters get-credentials application-beta --zone europe-west1-d
Fetching cluster endpoint and auth data.
kubeconfig entry generated for application-beta.
$ kubectl replace -f application-webapp-frontend-deployment.yml
error: You must be logged in to the server (the server has asked for the client to provide credentials)

Could this be because of an update of this docker image?

@frankvanrest
Copy link
Author

A solution is to add:

gcloud config set container/use_client_certificate True

I'm no sure why this is needed now, but at least it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants