我在尝试删除时收到此错误
Error: Error waiting for deleting GKE cluster:
(1)
(1)
(1)
(1) Google Compute Engine: Required 'compute.projects.get' permission for 'projects/xxxxxxxx'
(2) retry budget exhausted (5 attempts): Google Compute Engine: Required 'compute.routes.list' permission for 'projects/xxxxxxxx'
(2) Google Compute Engine: Required 'compute.firewalls.delete' permission for 'projects/xxxxxxxx/global/firewalls/gke-test-38003a6d-all'
(3) Google Compute Engine: Required 'compute.firewalls.delete' permission for 'projects/xxxxxxxx/global/firewalls/gke-test-38003a6d-master'
(4) Google Compute Engine: Required 'compute.firewalls.delete' permission for 'projects/xxxxxxxx/global/firewalls/gke-test-38003a6d-vms'
(5) Google Compute Engine: Required 'compute.instanceGroupManagers.delete' permission for 'projects/xxxxxxxx/zones/europe-west1-b/instanceGroupManagers/gke-test-global-7a297850-grp'
(6) Google Compute Engine: Required 'compute.instanceGroupManagers.delete' permission for 'projects/xxxxxxxx/zones/europe-west1-b/instanceGroupManagers/gke-test-istio-59af0ad5-grp'
(2) Google Compute Engine: Required 'compute.networks.removePeering' permission for 'projects/xxxxxxxx/global/networks/vpc-net'
(2) Google Compute Engine: Required 'compute.subnetworks.get' permission for 'projects/xxxxxxxx/regions/europe-west1/subnetworks/vpc-net'.
似乎某些权限已被删除,我尝试创建一个新的服务帐户,但没有成功。
任何想法?
谢谢
答案1
过了一会儿,我就用下面的方式禁用了 API:
gcloud services disable container.googleapis.com --project myproject
然后再次启用:
gcloud services enable container.googleapis.com --project myproject
这将恢复能够再次删除的权限。
然后删除集群就没问题了。
答案2
您是否尝试过使用其他具有更高权限的帐户?如果您是当前项目的管理员,则应该能够重新分配管理 GKE 所需的项目权限。