继Node.js hello-world教程之后,无法删除集群

时间:2015-09-24 11:49:46

标签: google-kubernetes-engine

我尝试使用node.js跟踪google容器引擎的官方hello-world教程,该工作正常。除了结束,删除群集。如何添加这些权限?我可以找到添加开发人员权限的方法,但不能找到cloudservices权限。我也很奇怪,我可以从cmdline创建集群,但不能删除它......我确实设法从计算引擎Web控制台中删除了工作者实例,但容器集群仍然可见。这是错误:

    $ gcloud container clusters delete hello-world
The following clusters will be deleted.
 - [hello-world] in [us-central1-f]

Do you want to continue (Y/n)?

Deleting cluster hello-world...done.
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
 - Operation [<Operation
 name: u'operation-1443093077789-c0cb741d'
 operationType: OperationTypeValueValuesEnum(DELETE_CLUSTER, 2)
 selfLink: u'https://container.googleapis.com/v1/projects/28547436xxx/zones/us-central1-f/operations/operation-1443093077789-c0cb741d'
 status: StatusValueValuesEnum(DONE, 3)
 statusMessage: u'"28547436xxx@cloudservices.gserviceaccount.com" does not have edit permissions on project "mytest".'
 targetLink: u'https://container.googleapis.com/v1/projects/28547436xxx/zones/us-central1-f/clusters/hello-world'
 zone: u'us-central1-f'>] finished with error: "28547436xxx@cloudservices.gserviceaccount.com" does not have edit permissions on project "mytest".

1 个答案:

答案 0 :(得分:0)

消息"28547436xxx@cloudservices.gserviceaccount.com" does not have edit permissions on project "mytest"表示您已修改项目中的某个默认服务帐户 - 遗憾的是,Container Engine用于向其他Cloud Platform服务进行身份验证以便能够执行操作比如代表你创建和删除虚拟机。

您应该可以在“权限”页面上从开发人员控制台重新添加该服务帐户的权限。之后,删除群集应该会成功。