5.5. Removing Jaeger
The steps for removing Jaeger from an OpenShift Container Platform cluster are as follows:
- Shut down any Jaeger pods.
- Remove any Jaeger instances.
- Remove the Jaeger Operator.
5.5.1. Removing a Jaeger instance using the web console 复制链接链接已复制到粘贴板!
When deleting an instance that uses the in-memory storage, all data will be permanently lost. Data stored in a persistent storage (such as Elasticsearch) will not be deleted when a Jaeger instance is removed.
Procedure
- Log in to the OpenShift Container Platform web console.
-
Navigate to Operators
Installed Operators. -
Select the name of the project where the Operators are installed from the Project menu, for example,
jaeger-system. - Click the Jaeger Operator.
- Click the Jaeger tab.
-
Click the Options menu
next to the instance you want to delete and select Delete Jaeger.
- In the confirmation message, click Delete.
5.5.2. Removing a Jaeger instance from the CLI 复制链接链接已复制到粘贴板!
Log in to the OpenShift Container Platform CLI.
$ oc loginTo display the Jaeger instances run the command:
$ oc get deployments -n <jaeger-project>The names of operators have the suffix
-operator. The following example shows two Jaeger Operators and four Jaeger instances:$ oc get deployments -n jaeger-systemYou should see output similar to the following:
NAME READY UP-TO-DATE AVAILABLE AGE elasticsearch-operator 1/1 1 1 93m jaeger-operator 1/1 1 1 49m jaeger-test 1/1 1 1 7m23s jaeger-test2 1/1 1 1 6m48s tracing1 1/1 1 1 7m8s tracing2 1/1 1 1 35mTo remove an instance of Jaeger, run the command:
$ oc delete jaeger <deployment-name> -n <jaeger-project>For example,
$ oc delete jaeger tracing2 -n jaeger-systemTo verify the deletion, run
oc get deploymentagain:$ oc get deployments -n <jaeger-project>For example,
$ oc get deployments -n jaeger-systemShould generate output similar to the following:
NAME READY UP-TO-DATE AVAILABLE AGE elasticsearch-operator 1/1 1 1 94m jaeger-operator 1/1 1 1 50m jaeger-test 1/1 1 1 8m14s jaeger-test2 1/1 1 1 7m39s tracing1 1/1 1 1 7m59s
5.5.3. Removing the Jaeger Operator 复制链接链接已复制到粘贴板!
Procedure
Follow the instructions for Deleting Operators from a cluster.
- Remove the Jaeger Operator.
- After the Jaeger Operator has been removed, if appropriate, remove the Elasticsearch Operator.