This process allows you to remove Red Hat OpenShift Service Mesh from an existing OpenShift Container Platform instance.

Removing the control plane

Follow this procedure to remove the Red Hat OpenShift Service Mesh control plane.

Procedure

When you remove the custom resource, Service Mesh tells the Operator to begin uninstalling everything it installed.

You can use the shortened smcp command in place of servicemeshcontrolplanes.

  1. Run this command to retrieve the name of the installed custom resource:

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

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

Removing the Operators

You must remove the Operators to successfully remove Red Hat OpenShift Service Mesh. Once you remove the Red Hat OpenShift Service Mesh Operator, you must remove the Jaeger Operator and the Kiali Operator.

Removing the Red Hat OpenShift Service Mesh Operator

Follow this procedure to remove the Red Hat OpenShift Service Mesh Operator.

Prerequisites
  • An account with cluster administrator access.

  • The Red Hat OpenShift Service Mesh Operator must be installed.

Procedure
  • Run the following command to remove the Red Hat OpenShift Service Mesh Operator:

    $ oc delete -n istio-operator -f https://raw.githubusercontent.com/Maistra/istio-operator/maistra-0.12/deploy/servicemesh-operator.yaml

Removing the Jaeger Operator

This procedure removes the Jaeger Operator.

Prerequisites
  • An account with cluster administrator access.

  • The Jaeger Operator must be installed.

Procedure
  • Run the following commands to remove the Jaeger Operator:

    $ oc delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/v1.13.1/deploy/operator.yaml
    $ oc delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/v1.13.1/deploy/role_binding.yaml
    $ oc delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/v1.13.1/deploy/role.yaml
    $ oc delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/v1.13.1/deploy/service_account.yaml
    $ oc delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/v1.13.1/deploy/crds/jaegertracing_v1_jaeger_crd.yaml

Removing the Kiali Operator

Prerequisites
  • An account with cluster administrator access.

  • The Kiali Operator must be installed.

Procedure
  • Run the following command to remove the Kiali Operator:

    $ bash <(curl -L https://git.io/getLatestKialiOperator) --uninstall-mode true --operator-watch-namespace '**'

Removing the projects

Follow this procedure to remove the Red Hat OpenShift Service Mesh projects.

Procedure
  1. Run this command to remove the istio-system project:

    $ oc delete project istio-system
  2. Run this command to remove the istio-operator project:

    $ oc delete project istio-operator