1.27.3. Operator リソースのクリーンアップ
OpenShift Container Platform Web コンソールを使用して、Red Hat OpenShift Service Mesh Operator を削除した後に残ったリソースを手動で削除できます。
前提条件
-
クラスター管理アクセスを持つアカウント。(Red Hat OpenShift Dedicated を使用する場合)
dedicated-adminロールがあるアカウント。 -
ocとして知られる OpenShift Container Platform コマンドラインインターフェイス (CLI) へのアクセス。
手順
- クラスター管理者として OpenShift Container Platform CLI にログインします。
以下のコマンドを実行して、Operator のアンインストール後にリソースをクリーンアップします。サービスメッシュなしで分散トレースプラットフォームをスタンドアロンのサービスとして引き続き使用する場合は、Jaeger リソースを削除しないでください。
注記Openshift Elasticsearch Operator はデフォルトで
openshift-operators-redhatにインストールされます。他の Operator はデフォルトでopenshift-operatorsnamespace にインストールされます。Operator を別の namespace にインストールしている場合、openshift-operatorsを Red Hat OpenShift Service Mesh Operator がインストールされていたプロジェクトの名前に置き換えます。$ oc delete validatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io$ oc delete mutatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io$ 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 get crds -o name | grep '.*\.istio\.io' | xargs -r -n 1 oc delete$ oc get crds -o name | grep '.*\.maistra\.io' | xargs -r -n 1 oc delete$ oc get crds -o name | grep '.*\.kiali\.io' | xargs -r -n 1 oc delete$ oc delete crds jaegers.jaegertracing.io$ oc delete cm -n openshift-operators maistra-operator-cabundle$ oc delete cm -n openshift-operators istio-cni-config$ oc delete sa -n openshift-operators istio-cni