1.26.3. Operator リソースのクリーンアップ
Red Hat OpenShift Service on AWS Web コンソールを使用して、Red Hat OpenShift Service Mesh Operator を削除した後に残ったリソースを手動で削除できます。
前提条件
-
クラスター管理アクセスを持つアカウント。Red Hat OpenShift Dedicated を使用する場合は、
dedicated-adminロールを持つアカウントが必要です。 -
OpenShift CLI (
oc) へのアクセスがある。
手順
- Red Hat OpenShift Service on AWS CLI にクラスター管理者としてログインします。
以下のコマンドを実行して、Operator のアンインストール後にリソースをクリーンアップします。service mesh なしで Distributed Tracing Platform (Jaeger) をスタンドアロンサービスとして引き続き使用する場合は、Jaeger リソースを削除しないでください。
注記OpenShift Elasticsearch Operator はデフォルトで
openshift-operators-redhatにインストールされます。他の Operator はデフォルトでopenshift-operatorsnamespace にインストールされます。Operator を別の namespace にインストールした場合は、openshift-operatorsを、Red Hat OpenShift Service Mesh Operator をインストールしたプロジェクトの名前に置き換えてください。$ oc delete svc maistra-admission-controller -n openshift-operators$ oc -n openshift-operators delete ds -lmaistra-version$ oc delete clusterrole/istio-admin clusterrole/istio-cni clusterrolebinding/istio-cni$ oc delete clusterrole istio-view istio-edit$ oc delete clusterrole jaegers.jaegertracing.io-v1-admin jaegers.jaegertracing.io-v1-crdview jaegers.jaegertracing.io-v1-edit jaegers.jaegertracing.io-v1-view$ oc delete cm -n openshift-operators maistra-operator-cabundle$ oc delete cm -n openshift-operators istio-cni-config istio-cni-config-v2-3$ oc delete sa -n openshift-operators istio-cni