Commit 48b875e
committed
docs(gke/boot): Update command to auth to kubernetes host
When I ran `$ kubectl cluster-info`, I got this error:
`error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.`
Looks like the auth mechanism was updated a few months ago: kubernetes/kubernetes#30617
"""
Previously, gcloud would have configured kubectl to use the cluster's static client certificate to authenticate. Now, gcloud is configuring kubectl to use the service account's credentials.
Kubectl is just using the Application Default Credentials library, and it looks like this is part of the ADC flow for using a JSON-key service account.
"""
At the bottom of that thread, this command was suggested, which worked for me:
`$ gcloud auth application-default login`.1 parent 908f516 commit 48b875e
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
0 commit comments