2.4. Red Hat OpenShift Service Mesh の削除

このプロセスでは、既存の OpenShift Container Platform インスタンスから Red Hat OpenShift Service Mesh を削除できます。

2.4.1. Red Hat OpenShift Service Mesh コントロールプレーンの削除

OpenShift Container Platform Web コンソールまたは CLI を使用してサービスメッシュコントロールプレーンを削除できます。

2.4.1.1. Web コンソールを使用したコントロールプレーンの削除

以下の手順に従って、Web コンソールを使用して Red Hat OpenShift Service Mesh コントロールプレーンを削除します。

前提条件

  • Red Hat OpenShift Service Mesh コントロールプレーンがデプロイされている必要があります。

手順

  1. OpenShift Container Platform Web コンソールにログインします。
  2. Project メニューをクリックし、一覧から istio-system プロジェクトを選択します。
  3. CatalogsInstalled Operators に移動します。
  4. Provided APIsService Mesh Control Plane をクリックします。
  5. ServiceMeshControlPlane メニューで kebab をクリックします。
  6. Delete Service Mesh Control Plane をクリックします。
  7. 確認ダイアログウィンドウで Delete をクリックし、ServiceMeshControlPlane を削除します。

2.4.1.2. CLI からのコントロールプレーンの削除

以下の手順に従って、CLI を使用して Red Hat OpenShift Service Mesh コントロールプレーンを削除します。

前提条件

  • Red Hat OpenShift Service Mesh コントロールプレーンがデプロイされている必要があります。
  • oc として知られる OpenShift Container Platform コマンドラインインターフェース (CLI) へのアクセス。
手順

ServiceMeshControlPlane を削除すると、サービスメッシュは Operator にインストールしたすべてのものをアンインストールするよう指示します。

ヒント

servicemeshcontrolplane の代わりに短い smcp エイリアスを使用できます。

  1. OpenShift Container Platform CLI にログインします。
  2. 以下のコマンドを実行して、インストールした ServiceMeshControlPlane の名前を取得します。

    $ oc get servicemeshcontrolplanes -n istio-system
  3. <name_of_custom_resource> を先のコマンドの出力に置き換え、以下のコマンドを実行してカスタムリソースを削除します。

    $ oc delete servicemeshcontrolplanes -n istio-system <name_of_custom_resource>

2.4.2. インストールされた Operator の削除

Red Hat OpenShift Service Mesh を正常に削除するには、Operator を削除する必要があります。Red Hat OpenShift Service Mesh Operator を削除したら、Jaeger Operator、Kiali Operator、および Elasticsearch Operator を削除する必要があります。

2.4.2.1. Red Hat OpenShift Service Mesh Operator の削除

以下の手順に従って、Red Hat OpenShift Service Mesh Operator を削除します。

前提条件

  • OpenShift Container Platform Web コンソールへのアクセス。
  • Red Hat OpenShift Service Mesh Operator がインストールされていること。

手順

  1. OpenShift Container Platform Web コンソールにログインします。
  2. CatalogsOperator Management に移動します。
  3. Project メニューをクリックしてから openshift-operators をクリックします。
  4. servicemeshoperator Options メニューをクリックします。 kebab をクリックし、 Remove Subscription をクリックします。
  5. Also completely remove the Operator from the selected namespace を選択してから Remove をクリックします。

2.4.2.2. Jaeger Operator の削除

以下の手順に従って、Jaeger Operator を削除します。

前提条件

  • OpenShift Container Platform Web コンソールへのアクセス。
  • Jaeger Operator がインストールされていること。

手順

  1. OpenShift Container Platform Web コンソールにログインします。
  2. CatalogsOperator Management に移動します。
  3. Project メニューをクリックしてから openshift-operators をクリックします。
  4. jaegeroperator Options メニューをクリックします。 kebab をクリックし、 Remove Subscription をクリックします。
  5. Also completely remove the Operator from the selected namespace を選択してから Remove をクリックします。

2.4.2.3. Kiali Operator の削除

以下の手順に従って、Kiali Operator を削除します。

前提条件

  • OpenShift Container Platform Web コンソールへのアクセス。
  • Kiali Operator がインストールされていること。

手順

  1. OpenShift Container Platform Web コンソールにログインします。
  2. CatalogsOperator Management に移動します。
  3. Project メニューをクリックしてから openshift-operators をクリックします。
  4. kiali-ossm Options メニュー kebab をクリックし、 Remove Subscription をクリックします。
  5. Also completely remove the Operator from the selected namespace を選択してから Remove をクリックします。

2.4.2.4. Elasticsearch Operator の削除

以下の手順に従って、Elasticsearch Operator を削除します。

前提条件

  • OpenShift Container Platform Web コンソールへのアクセス。
  • Elasticsearch Operator がインストールされていること。

手順

  1. OpenShift Container Platform Web コンソールにログインします。
  2. CatalogsOperator Management に移動します。
  3. Project メニューをクリックしてから openshift-operators をクリックします。
  4. elasticsearch-operator Options メニュー kebab をクリックし、 Remove Subscription をクリックします。
  5. Also completely remove the Operator from the selected namespace を選択してから Remove をクリックします。

2.4.2.5. Operator リソースのクリーンアップ

以下の手順に従って、OperatorHub インターフェースを使用して、Red Hat OpenShift Service Mesh Operator を削除した後に残ったリソースを手動で削除します。

前提条件

  • クラスター管理アクセスを持つアカウント。
  • oc として知られる OpenShift Container Platform コマンドラインインターフェース (CLI) へのアクセス。

手順

  1. クラスター管理者として OpenShift Container Platform CLI にログインします。
  2. 以下のコマンドを実行して、Operator のアンインストール後にリソースをクリーンアップします。

    注記

    <operator-project> を、Red Hat OpenShift Service Mesh Operator がインストールされているプロジェクトの名前に置き換えます。通常、これは openshift-operators になります。

    $ oc delete validatingwebhookconfiguration/<operator-project>.servicemesh-resources.maistra.io
    $ oc delete -n <operator-project> daemonset/istio-node
    $ oc delete clusterrole/istio-admin clusterrole/istio-cni clusterrolebinding/istio-cni
    $ 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