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.10.5. 从集群中删除 OpenShift Update Service
要从集群中删除 OpenShift Update Service (OSUS) 的本地副本,您必须首先删除 OSUS 应用程序,然后卸载 OSUS Operator。
10.5.1. 删除 OpenShift Update Service 应用程序 复制链接链接已复制到粘贴板!
您可以使用 OpenShift Container Platform Web 控制台或 CLI 删除 OpenShift Update Service 应用程序。
10.5.1.1. 使用 Web 控制台删除 OpenShift Update Service 应用程序 复制链接链接已复制到粘贴板!
您可以使用 OpenShift Container Platform Web 控制台使用 OpenShift Update Service Operator 删除 OpenShift Update Service 应用程序。
先决条件
- 已安装 OpenShift Update Service Operator。
流程
-
在 Web 控制台中,点 Operators
Installed Operators。 - 从安装的 Operator 列表中选择 OpenShift Update Service。
- 点 Update Service 选项卡。
- 从安装的 OpenShift Update Service 应用列表中,选择要删除的应用,然后单击 Delete UpdateService。
- 从 Delete UpdateService? 确认对话框中,单击 Delete 以确认删除。
10.5.1.2. 使用 CLI 删除 OpenShift Update Service 应用程序 复制链接链接已复制到粘贴板!
您可以使用 OpenShift CLI(oc
)删除 OpenShift Update Service 应用。
流程
使用 OpenShift Update Service 应用程序在其中创建的命名空间获取 OpenShift Update Service 应用程序的名称,如
openshift-update-service
:oc get updateservice -n openshift-update-service
$ oc get updateservice -n openshift-update-service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
NAME AGE service 6s
NAME AGE service 6s
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用上一步中的
NAME
值以及 OpenShift Update Service 应用程序创建命名空间删除 OpenShift Update Service 应用程序,如openshift-update-service
:oc delete updateservice service -n openshift-update-service
$ oc delete updateservice service -n openshift-update-service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
updateservice.updateservice.operator.openshift.io "service" deleted
updateservice.updateservice.operator.openshift.io "service" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
10.5.2. 卸载 OpenShift Update Service Operator 复制链接链接已复制到粘贴板!
您可以使用 OpenShift Container Platform Web 控制台或 CLI 卸载 OpenShift Update Service Operator。
10.5.2.1. 使用 Web 控制台卸载 OpenShift Update Service Operator 复制链接链接已复制到粘贴板!
您可以使用 OpenShift Container Platform Web 控制台卸载 OpenShift Update Service Operator。
先决条件
- 所有 OpenShift Update Service 应用都已删除。
流程
-
在 Web 控制台中,点 Operators
Installed Operators。 - 从安装的 Operator 列表中选择 OpenShift Update Service 并点 Uninstall Operator。
- 在 Uninstall Operator? 确认对话框中点 Uninstall 确认卸载。
10.5.2.2. 使用 CLI 卸载 OpenShift Update Service Operator 复制链接链接已复制到粘贴板!
您可以使用 OpenShift CLI(oc
)卸载 OpenShift Update Service Operator。
先决条件
- 所有 OpenShift Update Service 应用都已删除。
流程
更改到包含 OpenShift Update Service Operator 的项目,如
openshift-update-service
:oc project openshift-update-service
$ oc project openshift-update-service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
Now using project "openshift-update-service" on server "https://example.com:6443".
Now using project "openshift-update-service" on server "https://example.com:6443".
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 获取 OpenShift Update Service Operator operator 组的名称:
oc get operatorgroup
$ oc get operatorgroup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
NAME AGE openshift-update-service-fprx2 4m41s
NAME AGE openshift-update-service-fprx2 4m41s
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 删除 operator 组,如
openshift-update-service-fprx2
:oc delete operatorgroup openshift-update-service-fprx2
$ oc delete operatorgroup openshift-update-service-fprx2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deleted
operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 获取 OpenShift Update Service Operator 订阅的名称:
oc get subscription
$ oc get subscription
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
NAME PACKAGE SOURCE CHANNEL update-service-operator update-service-operator updateservice-index-catalog v1
NAME PACKAGE SOURCE CHANNEL update-service-operator update-service-operator updateservice-index-catalog v1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用上一步中的
Name
值,在currentCSV
字段中检查订阅的 OpenShift Update Service Operator 的当前版本:oc get subscription update-service-operator -o yaml | grep " currentCSV"
$ oc get subscription update-service-operator -o yaml | grep " currentCSV"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
currentCSV: update-service-operator.v0.0.1
currentCSV: update-service-operator.v0.0.1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 删除订阅,如
update-service-operator
:oc delete subscription update-service-operator
$ oc delete subscription update-service-operator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
subscription.operators.coreos.com "update-service-operator" deleted
subscription.operators.coreos.com "update-service-operator" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用上一步中的
currentCSV
值删除 OpenShift Update Service Operator 的 CSV:oc delete clusterserviceversion update-service-operator.v0.0.1
$ oc delete clusterserviceversion update-service-operator.v0.0.1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted
clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow