我做了一个小的Kubernetes集群设置。几个小时后,我尝试将其删除。但是,无法删除云资源。
我从GCP用户界面尝试过:
并来自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]?
这些机器看起来仍然可以运行,但是可以访问。我不知道还有什么尝试。请与gcp计费支持小组联系以停止计费,但他们说我没有技术支持计划,他们无法帮助我。非常烦人,我需要为不在我控制范围内的问题提供支持。
如何删除此群集?该怎么办?
答案 0 :(得分:2)
如果我们查看有关删除集群的文档,请参见:
https://cloud.google.com/sdk/gcloud/reference/container/clusters/delete
我们发现它具有可选的zone参数。创建(或删除)群集时,必须提供一个区域。如果您不提供区域,则将使用默认区域(如gcloud命令所相信)。在您的输出中,我们似乎看到您的gcloud命令认为它的DEFAULT区域是europe-west3-c,而集群所在的区域似乎是us-central1-a。我相信解决方案是将--zone us-central1-a
参数添加到您的gcloud命令中。
答案 1 :(得分:0)
我和你的情况一样。 但我只是设法删除了集群。
瞧!