2.6. 使用 SiteConfig operator 取消置备单节点 OpenShift 集群
使用 SiteConfig operator 取消置备集群,以删除与该集群关联的所有资源和访问。
需要的访问权限:集群管理员
2.6.1. 先决条件 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- 使用默认安装模板使用 SiteConfig operator 部署集群。
2.6.2. 取消置备单节点 OpenShift 集群 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
完成以下步骤以删除集群:
运行以下命令来删除
ClusterInstance自定义资源:oc delete clusterinstance <cluster_name> -n <target_namespace>
oc delete clusterinstance <cluster_name> -n <target_namespace>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行以下命令验证删除是否成功:
oc get clusterinstance <cluster_name> -n <target_namespace>
oc get clusterinstance <cluster_name> -n <target_namespace>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
请参阅以下示例输出,其中 (NotFound) 错误表示您的集群已被取消置备。
Error from server (NotFound): clusterinstances.siteconfig.open-cluster-management.io "<cluster_name>" not found
Error from server (NotFound): clusterinstances.siteconfig.open-cluster-management.io "<cluster_name>" not found