No1*_*ver 2 google-cloud-platform kubernetes
我对 Kubernetes 集群做了一个小的设置。几个小时后我尝试删除它。但是,云资源是无法删除的。
我从 GCP UI 尝试过:
并来自gcloud
:
$ gcloud container clusters delete nat-test-cluster
The following clusters will be deleted.
- [nat-test-cluster] in [europe-west3-c]
Do you want to continue (Y/n)? Y
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- args: [u'ResponseError: code=404, message=Not found: projects/proj/zones/europe-west3-c/clusters/nat-test-cluster.\nCould not find [nat-test-cluster] in [europe-west3-c].\nDid you mean [nat-test-cluster] in [us-central1-a]?']
exit_code: 1
message: ResponseError: code=404, message=Not found: projects/dotnet-core-cluster/zones/europe-west3-c/clusters/nat-test-cluster.
Could not find [nat-test-cluster] in [europe-west3-c].
Did you mean [nat-test-cluster] in [us-central1-a]?
Run Code Online (Sandbox Code Playgroud)
这些机器看起来仍在工作,但无法访问。我不知道还能尝试什么。联系 GCP 计费支持以停止计费,但他们说我没有技术支持计划,他们无法帮助我。太烦人了,我需要为不在我控制范围内的问题支付支持费用。
如何删除这个集群呢?该怎么办?
如果我们查看此处找到的删除集群的文档:
https://cloud.google.com/sdk/gcloud/reference/container/clusters/delete
我们发现它有一个可选的区域参数。当您创建(或删除)集群时,您必须提供一个区域。如果您不提供区域,则将使用您的默认区域(如 gcloud 命令所认为的)。在您的输出中,我们似乎看到您的 gcloud 命令认为其默认区域是 europe-west3-c,而集群所在的区域似乎是 us-central1-a。我相信解决方案是将--zone us-central1-a
参数添加到您的 gcloud 命令中。
归档时间: |
|
查看次数: |
2428 次 |
最近记录: |