Uninstalling Alauda Build of OpenTelemetry v2
You can uninstall the Alauda Build of OpenTelemetry v2 Operator and its resources from your Alauda Container Platform. This can be done through the Alauda Container Platform web console or the command line interface (CLI). Additionally, you have the option to delete the OpenTelemetry custom resource definitions (CRDs).
TOC
Uninstalling via the web consoleUninstalling via the CLIDeleting OpenTelemetry custom resource definitionsUninstalling via the web console
Uninstalling the Alauda Build of OpenTelemetry v2 Operator from an Alauda Container Platform involves deleting the following components:
InstrumentationresourcesOpenTelemetryCollectorresources- Alauda Build of OpenTelemetry v2 Operator
You can also optionally remove the OpenTelemetry custom resource definitions (CRDs).
The Alauda Build of OpenTelemetry v2 Operator can be uninstalled using the Alauda Container Platform web console.
Procedure
Delete the Instrumentation resources
- In the Alauda Container Platform web console, navigate to Administrator.
- Select Marketplace > OperatorHub.
- Search for the
Alauda Build of OpenTelemetry v2. - Locate the Alauda Build of OpenTelemetry v2, and click to select it.
- Click All Instances tab.
- From the Filter by instance type dropdown, select
Instrumentation. - Click the "⋮" button for each
Instrumentationresource, then click Delete in the menu. - When prompted, confirm the action by clicking Delete.
Delete the OpenTelemetryCollector resources
In the Alauda Build of OpenTelemetry v2 view of OperatorHub:
- Click All Instances tab.
- From the Filter by instance type dropdown, select
OpenTelemetryCollector. - Click the "⋮" button for each
OpenTelemetryCollectorresource, then click Delete in the menu. - When prompted, confirm the action by clicking Delete.
Uninstall the Alauda Build of OpenTelemetry v2 Operator
In the Alauda Build of OpenTelemetry v2 view of OperatorHub:
- Click the Uninstall button in the top-right corner.
- In the confirmation prompt, read the uninstall notice: Removing the operator will not remove any of its custom resource definitions or managed resources. If you have created a resource instance, you need to delete it manually.
- Click Uninstall.
Uninstalling via the CLI
To uninstall the Alauda Build of OpenTelemetry v2 Operator from an Alauda Container Platform, you must delete the following:
InstrumentationresourcesOpenTelemetryCollectorresources- Alauda Build of OpenTelemetry v2 Operator
Optionally, you can also delete the OpenTelemetry custom resource definitions (CRDs).
The Alauda Build of OpenTelemetry v2 Operator can be uninstalled using the Alauda Container Platform command line interface (CLI).
Procedure
Delete the Instrumentation resources
-
Get the
Instrumentationresources by executing this command:Example output
-
Use the namespace and name from the previous command's output to replace
<namespace>and<name>, and then run the following to remove each resource:Example output
Delete the OpenTelemetryCollector resources
-
Get the
OpenTelemetryCollectorresources by executing this command:Example output
-
Use the namespace and name from the previous command's output to replace
<namespace>and<name>, and then run the following to remove each resource:Example output
Uninstall the Alauda Build of OpenTelemetry v2 Operator
-
Delete the
opentelemetry-operator2subscription:Example output
Deleting OpenTelemetry custom resource definitions
The deletion of OpenTelemetry custom resource definitions (CRDs) is an optional step.
Procedure
-
To delete the OpenTelemetry CRDs, execute the command below: