3.5. OpenShift Update Service Operator のアンインストール
OpenShift Update Service をアンインストールするには、まず OpenShift Container Platform Web コンソールまたは CLI を使用してすべての OpenShift Update Service アプリケーションを削除する必要があります。
3.5.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 をクリックし、アンインストールを確定します。
3.5.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出力例
Now using project "openshift-update-service" on server "https://example.com:6443".OpenShift Update Service Operator Operator グループの名前を取得します。
$ oc get operatorgroup出力例
NAME AGE openshift-update-service-fprx2 4m41sOperator グループを削除します (例:
openshift-update-service-fprx2)。$ oc delete operatorgroup openshift-update-service-fprx2出力例
operatorgroup.operators.coreos.com "openshift-update-service-fprx2" deletedOpenShift Update Service Operator サブスクリプションの名前を取得します。
$ oc get subscription出力例
NAME PACKAGE SOURCE CHANNEL update-service-operator update-service-operator updateservice-index-catalog v1直前の手順で
Nameの値を使用して、currentCSVフィールドで、サブスクライブされた OpenShift Update Service Operator の現行バージョンを確認します。$ oc get subscription update-service-operator -o yaml | grep " currentCSV"出力例
currentCSV: update-service-operator.v0.0.1サブスクリプション (例:
update-service-operator) を削除します。$ oc delete subscription update-service-operator出力例
subscription.operators.coreos.com "update-service-operator" deleted直前の手順の
currentCSV値を使用し、OpenShift Update Service Operator の CSV を削除します。$ oc delete clusterserviceversion update-service-operator.v0.0.1出力例
clusterserviceversion.operators.coreos.com "update-service-operator.v0.0.1" deleted