Google app engine gcloud无法将群集添加到空的kubectl配置中

Google app engine gcloud无法将群集添加到空的kubectl配置中,google-app-engine,kubernetes,gcp,google-kubernetes-engine,Google App Engine,Kubernetes,Gcp,Google Kubernetes Engine,我已经通过登录我的GCP项目>容器引擎>创建集群创建了GCP集群。但是当我想通过kubectl使用它时,我似乎无法将它添加到我的配置中 使用Google Cloud SDK,我已经正确地进行了身份验证,设置了我的项目、默认区域/区域,我可以看到我的集群吗: gcloud auth application-default login gcloud config set compute/region us-east1 gcloud config set compute/zone us-east1-b

我已经通过登录我的GCP项目>容器引擎>创建集群创建了GCP集群。但是当我想通过
kubectl
使用它时,我似乎无法将它添加到我的配置中

使用Google Cloud SDK,我已经正确地进行了身份验证,设置了我的项目、默认区域/区域,我可以看到我的集群吗:

gcloud auth application-default login
gcloud config set compute/region us-east1
gcloud config set compute/zone us-east1-b
gcloud config set project <myproject>
gcloud container clusters list
gcloud container clusters get-credentials <cluster name>
gcloud config set container/cluster <cluster name>
我的问题是我正在关注(请参阅“配置kubectl”一节),因此我想通知kubectl我的新集群。因此,根据那里的文档,我成功地运行了:

gcloud container clusters get-credentials NAME --zone ZONE
...
Fetching cluster endpoint and auth data.
kubeconfig entry generated for <clustername>.
为什么我不能从一个完全空白的kubectl配置开始,并将我的GCP集群添加到其中

gcloud container clusters get-credentials NAME --zone ZONE
...
Fetching cluster endpoint and auth data.
kubeconfig entry generated for <clustername>.
apiVersion: v1
clusters: []
contexts: []
current-context: ""
kind: Config
preferences: {}
users: []