This is a cache of https://docs.openshift.com/container-platform/4.9/service_mesh/v1x/removing-ossm.html. It is a snapshot of the page at 2024-11-20T19:06:31.723+0000.
Removing <strong>service</strong> Mesh - <strong>service</strong> Mesh 1.x | <strong>service</strong> Mesh | OpenShift Container Platform 4.9
×

You are viewing documentation for a Red Hat OpenShift service Mesh release that is no longer supported.

service Mesh version 1.0 and 1.1 control planes are no longer supported. For information about upgrading your service mesh control plane, see Upgrading service Mesh.

For information about the support status of a particular Red Hat OpenShift service Mesh release, see the Product lifecycle page.

To remove Red Hat OpenShift service Mesh from an existing OpenShift Container Platform instance, remove the control plane before removing the operators.

Removing the Red Hat OpenShift service Mesh control plane

To uninstall service Mesh from an existing OpenShift Container Platform instance, first you delete the service Mesh control plane and the Operators. Then, you run commands to remove residual resources.

Removing the service Mesh control plane using the web console

You can remove the Red Hat OpenShift service Mesh control plane by using the web console.

Procedure
  1. Log in to the OpenShift Container Platform web console.

  2. Click the Project menu and select the project where you installed the service Mesh control plane, for example istio-system.

  3. Navigate to OperatorsInstalled Operators.

  4. Click service Mesh Control Plane under Provided APIs.

  5. Click the serviceMeshControlPlane menu kebab.

  6. Click Delete service Mesh Control Plane.

  7. Click Delete on the confirmation dialog window to remove the serviceMeshControlPlane.

Removing the service Mesh control plane using the CLI

You can remove the Red Hat OpenShift service Mesh control plane by using the CLI. In this example, istio-system is the name of the control plane project.

Procedure
  1. Log in to the OpenShift Container Platform CLI.

  2. Run the following command to delete the serviceMeshMemberRoll resource.

    $ oc delete smmr -n istio-system default
  3. Run this command to retrieve the name of the installed serviceMeshControlPlane:

    $ oc get smcp -n istio-system
  4. Replace <name_of_custom_resource> with the output from the previous command, and run this command to remove the custom resource:

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

Removing the installed Operators

You must remove the Operators to successfully remove Red Hat OpenShift service Mesh. After you remove the Red Hat OpenShift service Mesh Operator, you must remove the Kiali Operator, the Red Hat OpenShift distributed tracing platform Operator, and the OpenShift Elasticsearch Operator.

Removing the Operators

Follow this procedure to remove the Operators that make up Red Hat OpenShift service Mesh. Repeat the steps for each of the following Operators.

  • Red Hat OpenShift service Mesh

  • Kiali

  • Red Hat OpenShift distributed tracing platform

  • OpenShift Elasticsearch

Procedure
  1. Log in to the OpenShift Container Platform web console.

  2. From the OperatorsInstalled Operators page, scroll or type a keyword into the Filter by name to find each Operator. Then, click the Operator name.

  3. On the Operator Details page, select Uninstall Operator from the Actions menu. Follow the prompts to uninstall each Operator.

Clean up Operator resources

Follow this procedure to manually remove resources left behind after removing the Red Hat OpenShift service Mesh Operator using the OpenShift Container Platform web console.

Prerequisites
  • An account with cluster administration access.

  • Access to the OpenShift CLI (oc).

Procedure
  1. Log in to the OpenShift Container Platform CLI as a cluster administrator.

  2. Run the following commands to clean up resources after uninstalling the Operators. If you intend to keep using Jaeger as a stand alone service without service mesh, do not delete the Jaeger resources.

    The Operators are installed in the openshift-operators namespace by default. If you installed the Operators in another namespace, replace openshift-operators with the name of the project where the Red Hat OpenShift service Mesh Operator was installed.

    $ oc delete validatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
    $ oc delete mutatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
    $ oc delete -n openshift-operators daemonset/istio-node
    $ 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 svc admission-controller -n <operator-project>
    $ oc delete project <istio-system-project>