$ oc delete smmr -n istio-system default
To uninstall Red Hat OpenShift Service Mesh from an existing OpenShift Container Platform instance and remove its resources, you must delete the control plane, delete the Operators, and run commands to manually remove some resources.
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.
You can remove the Red Hat OpenShift Service Mesh control plane by using the web console.
Log in to the OpenShift Container Platform web console.
click the Project menu and select the project where you installed the Service Mesh control plane, for example istio-system.
Navigate to Operators → Installed Operators.
click Service Mesh Control Plane under Provided APIs.
click the ServiceMeshControlPlane
menu .
click Delete Service Mesh Control Plane.
click Delete on the confirmation dialog window to remove the ServiceMeshControlPlane
.
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.
Log in to the OpenShift Container Platform cli.
Run the following command to delete the ServiceMeshMemberRoll
resource.
$ oc delete smmr -n istio-system default
Run this command to retrieve the name of the installed ServiceMeshControlPlane
:
$ oc get smcp -n istio-system
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>
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.
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
Log in to the OpenShift Container Platform web console.
From the Operators → Installed Operators page, scroll or type a keyword into the Filter by name to find each Operator. Then, click the Operator name.
On the the Operator Details page, select Uninstall Operator from the Actions menu. Follow the prompts to uninstall each Operator.
You can manually remove resources left behind after removing the Red Hat OpenShift Service Mesh Operator using the OpenShift Container Platform web console.
An account with cluster administration access. If you use Red Hat OpenShift Dedicated, you must have an account with the dedicated-admin
role.
Access to the OpenShift Container Platform Command-line Interface (cli) also known as oc
.
Log in to the OpenShift Container Platform cli as a cluster administrator.
Run the following commands to clean up resources after uninstalling the Operators. If you intend to keep using distributed tracing platform as a stand-alone service without service mesh, do not delete the Jaeger resources.
The OpenShift Elasticsearch Operator is installed in |
$ 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