$ oc login --username=<your_username>
The steps for removing the distributed tracing data collection from an OpenShift Container Platform cluster are as follows:
Shut down all distributed tracing data collection pods.
Remove any OpenTelemetryCollector instances.
Remove the Red Hat OpenShift distributed tracing data collection Operator.
You can remove a distributed tracing data collection instance in the Administrator view of the web console.
You are logged in to the web console as a cluster administrator with the cluster-admin
role.
For Red Hat OpenShift Dedicated, you must be logged in using an account with the dedicated-admin
role.
Go to Operators → Installed Operators → Red Hat OpenShift distributed tracing data collection Operator → OpenTelemetryInstrumentation or OpenTelemetryCollector.
To remove the relevant instance, select → Delete … → Delete.
Optional: Remove the Red Hat OpenShift distributed tracing data collection Operator.
You can remove a distributed tracing data collection instance on the command line.
An active OpenShift CLI (oc
) session by a cluster administrator with the cluster-admin
role.
|
Get the name of the distributed tracing data collection instance by running the following command:
$ oc get deployments -n <project_of_opentelemetry_instance>
Remove the distributed tracing data collection instance by running the following command:
$ oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>
Optional: Remove the Red Hat OpenShift distributed tracing data collection Operator.
To verify successful removal of the distributed tracing data collection instance, run oc get deployments
again:
$ oc get deployments -n <project_of_opentelemetry_instance>