分离符合 CNCF 要求的关联集群
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
所谓分离集群,指的是从 Google Cloud 舰队管理中取消注册集群,并从集群中移除关联的软件。 您可以使用 Google Cloud CLI 或 Google Cloud 控制台分离集群。
gcloud CLI
如需分离集群,请使用
gcloud container attached clusters delete
命令。
提供可选标志 --ignore-errors
会强制分离集群,即使无法删除某些集群内资源也是如此。添加可选的 --allow-missing
标志意味着删除请求会返回成功代码,即使找不到集群也是如此:
gcloud container attached clusters delete CLUSTER_NAME \
--ignore-errors \
--allow-missing \
--location=GOOGLE_CLOUD_REGION
请替换以下内容:
- CLUSTER_NAME:您的集群的名称
- GOOGLE_CLOUD_REGION:用于管理您的集群的 Google Cloud 区域的名称
如需了解详情,请参阅 gcloud container attached clusters delete。
控制台
在 Google Cloud 控制台中,进入 Google Kubernetes Engine 集群概览页面。
转到 GKE 集群
选择集群所在的 Google Cloud 项目。
点击您要分离的集群的名称,然后在侧边栏中选择查看更多详情。
点击窗口顶部附近的 delete
删除。
当系统提示您确认时,请输入集群的名称,然后点击确认。
分离集群时,与集群相关的所有 Google Cloud 资源(例如舰队成员资格资源和工作负载身份池 OIDC 提供方)都会被删除。集群中安装的任何 GKE Enterprise 功能(例如 Config Sync 和 Anthos Service Mesh)也会被删除。Kubernetes 集群本身不会被删除。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-02。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]