This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.1.27. 卸载 Service Mesh
要从现有的 OpenShift Container Platform 实例卸载 Red Hat OpenShift Service Mesh 并删除其资源,您必须删除 control plane、删除 Operator,并运行命令来手动删除某些资源。
1.27.1. 删除 Red Hat OpenShift Service Mesh control plane 复制链接链接已复制到粘贴板!
要从现有的 OpenShift Container Platform 实例卸载 Service Mesh,首先删除 Service Mesh control plane 和 Operator。然后,您将运行命令来删除剩余的资源。
1.27.1.1. 使用 Web 控制台删除 Service Mesh control plane 复制链接链接已复制到粘贴板!
您可以使用 Web 控制台删除 Red Hat OpenShift Service Mesh control plane。
流程
- 登陆到 OpenShift Container Platform Web 控制台。
- 点 Project 菜单,选择安装 Service Mesh control plane 的项目,如 istio-system。
-
导航到 Operators
Installed Operators。 - 点 Provided APIs 下的 Service Mesh Control Plane。
-
点
ServiceMeshControlPlane
菜单.
- 点 Delete Service Mesh Control Plane。
-
在确认窗口中点 Delete 删除
ServiceMeshControlPlane
。
1.27.1.2. 使用 CLI 删除 Service Mesh control plane 复制链接链接已复制到粘贴板!
您可以使用 CLI 删除 Red Hat OpenShift Service Mesh control plane。在本例中,istio-system
是 control plane 项目的名称。
流程
- 登录 OpenShift Container Platform CLI。
运行以下命令以删除
ServiceMeshMemberRoll
资源。oc delete smmr -n istio-system default
$ oc delete smmr -n istio-system default
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行这个命令来获得安装的
ServiceMeshControlPlane
的名称:oc get smcp -n istio-system
$ oc get smcp -n istio-system
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用以上命令中的输出替换
<name_of_custom_resource>
,运行这个命令来删除自定义资源:oc delete smcp -n istio-system <name_of_custom_resource>
$ oc delete smcp -n istio-system <name_of_custom_resource>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow