$ oc get servicemeshcontrolplanes -n istio-system
This process allows you to remove Red Hat OpenShift service Mesh from an existing OpenShift Container Platform instance. Remove the control plane before removing the operators.
The serviceMeshMemberRoll
resource is automatically deleted when you delete the serviceMeshControlPlane
resource it is associated with.
You can remove the service Mesh control plane by using the OpenShift Container Platform web console or the CLI.
Follow this procedure to remove the Red Hat OpenShift service Mesh control plane by using the web console.
The Red Hat OpenShift service Mesh control plane must be deployed.
Log in to the OpenShift Container Platform web console.
Click the Project menu and choose the istio-system
project from the list.
Navigate to Operators → Installed Operators.
Click on 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
.
Follow this procedure to remove the Red Hat OpenShift service Mesh control plane by using the CLI.
The Red Hat OpenShift service Mesh control plane must be deployed.
Access to the OpenShift Container Platform Command-line Interface (CLI) also known as oc
.
Procedure
When you remove the |
You can use the shortened |
Log in to the OpenShift Container Platform CLI.
Run this command to retrieve the name of the installed serviceMeshControlPlane
:
$ oc get servicemeshcontrolplanes -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 servicemeshcontrolplanes -n istio-system <name_of_custom_resource>
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 Kiali Operator, the Jaeger Operator, and the Elasticsearch Operator.
Follow this procedure to remove the Red Hat OpenShift service Mesh Operator.
Access to the OpenShift Container Platform web console.
The Red Hat OpenShift service Mesh Operator must be installed.
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 the Red Hat OpenShift service Mesh Operator. Then, click on it.
On the right-hand side of the Operator Details page, select Uninstall Operator from the Actions drop-down menu.
When prompted by the Remove Operator Subscription window, optionally select the Also completely remove the Operator from the selected namespace check box if you want all components related to the installation to be removed. This removes the CSV, which in turn removes the pods, Deployments, CRDs, and CRs associated with the Operator.
Follow this procedure to remove the Kiali Operator.
Access to the OpenShift Container Platform web console.
The Kiali Operator must be installed.
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 the Kiali Operator. Then, click on it.
On the right-hand side of the Operator Details page, select Uninstall Operator from the Actions drop-down menu.
When prompted by the Remove Operator Subscription window, optionally select the Also completely remove the Operator from the selected namespace check box if you want all components related to the installation to be removed. This removes the CSV, which in turn removes the pods, Deployments, CRDs, and CRs associated with the Operator.
Follow this procedure to remove the Jaeger Operator.
Access to the OpenShift Container Platform web console.
The Jaeger Operator must be installed.
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 the Jaeger Operator. Then, click on it.
On the right-hand side of the Operator Details page, select Uninstall Operator from the Actions drop-down menu.
When prompted by the Remove Operator Subscription window, optionally select the Also completely remove the Operator from the selected namespace check box if you want all components related to the installation to be removed. This removes the CSV, which in turn removes the pods, Deployments, CRDs, and CRs associated with the Operator.
Follow this procedure to remove the Elasticsearch Operator.
Access to the OpenShift Container Platform web console.
The Elasticsearch Operator must be installed.
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 the Elasticsearch Operator. Then, click on it.
On the right-hand side of the Operator Details page, select Uninstall Operator from the Actions drop-down menu.
When prompted by the Remove Operator Subscription window, optionally select the Also completely remove the Operator from the selected namespace check box if you want all components related to the installation to be removed. This removes the CSV, which in turn removes the pods, Deployments, CRDs, and CRs associated with the Operator.
Follow this procedure to manually remove resources left behind after removing the Red Hat OpenShift service Mesh Operator using the OpenShift console.
An account with cluster administration access.
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 Jaeger as a stand alone service without service mesh, do not delete the Jaeger resources.
The Operators are installed in the |
$ oc delete validatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
$ oc delete mutatingwebhookconfigurations/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>