我正在使用谷歌容器引擎在gcloud上进行操作。所以,在成功完成gloud init
之后,我按照说明进行了以下操作:
I'm playing with Google container engine on gcloud. So after successfully finished gloud init
I followed instructions and did:
gcloud container clusters get-credentials cluster-1 --zone europe-west1-c --project whatever
接着:
kubectl proxy
但我收到了以下错误消息:
error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
我在~/.kube/config
文件中看到了一些内容,所以我不确定出了什么问题。我也在机器上安装了minikube
,但我不认为这是个问题。