$ oc login --username=<your_username>
The steps for removing the Red Hat build of OpenTelemetry from an OpenShift Container Platform cluster are as follows:
Shut down all Red Hat build of OpenTelemetry pods.
Remove any OpenTelemetryCollector instances.
Remove the Red Hat build of OpenTelemetry Operator.
You can remove an OpenTelemetry Collector 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 build of OpenTelemetry Operator → OpenTelemetryInstrumentation or OpenTelemetryCollector.
To remove the relevant instance, select → Delete … → Delete.
Optional: Remove the Red Hat build of OpenTelemetry Operator.
You can remove an OpenTelemetry Collector 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 OpenTelemetry Collector instance by running the following command:
$ oc get deployments -n <project_of_opentelemetry_instance>
Remove the OpenTelemetry Collector instance by running the following command:
$ oc delete opentelemetrycollectors <opentelemetry_instance_name> -n <project_of_opentelemetry_instance>
Optional: Remove the Red Hat build of OpenTelemetry Operator.
To verify successful removal of the OpenTelemetry Collector instance, run oc get deployments
again:
$ oc get deployments -n <project_of_opentelemetry_instance>