Website: Issue with /docs/hellonode/ - error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

Created on 4 Oct 2016  路  2Comments  路  Source: kubernetes/website

The first command that uses kubectl results in this error:

error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

Possibly relevant for reproduction: I initially selected us-west-1 for the first run and then switched to us-central-1 for the run documenting repro steps. I am currently in Portugal.

Full script copied below. Seems like it could be related to https://github.com/kubernetes/kubernetes/issues/28612

session.log.txt

Most helpful comment

I was able to resolve this by doing the following before any kubectl commands:

$ gcloud auth application-default login

can this be added to the hello world documentation? or was there a step I missed that should have done this?

All 2 comments

I was able to resolve this by doing the following before any kubectl commands:

$ gcloud auth application-default login

can this be added to the hello world documentation? or was there a step I missed that should have done this?

The /docs/hello-node page has been replace with a page that doesn't use Google Cloud Platform:
https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmetb picture ahmetb  路  4Comments

seokho-son picture seokho-son  路  3Comments

Karunamon picture Karunamon  路  3Comments

sftim picture sftim  路  3Comments

Dieken picture Dieken  路  4Comments