Uninstalling Alauda Service Mesh in ambient mode
You can uninstall the Alauda Service Mesh Operator and its ambient mode 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 Istio custom resource definitions (CRDs).
TOC
Uninstalling via the web consoleUninstalling via the CLIDeleting Istio custom resource definitionsUninstalling via the web console
Uninstalling the Alauda Service Mesh v2 Operator in ambient mode from an Alauda Container Platform involves deleting the following components:
- Waypoint proxy
Gatewayresources ZTunnelresourceIstioresourceIstioCNIresource- Alauda Service Mesh v2 Operator
ztunnelnamespaceistio-systemnamespaceistio-cninamespace
You can also optionally remove the Istio custom resource definitions (CRDs).
The Alauda Service Mesh v2 Operator can be uninstalled using the Alauda Container Platform web console.
Procedure
Delete the waypoint proxy Gateway resources
Remove all waypoint proxy Gateway resources from each namespace that has them deployed. You can identify waypoint proxies by the istio.io/waypoint-for label on Gateway resources.
Remove the ambient data plane label from namespaces
Remove the istio.io/dataplane-mode=ambient label from all namespaces that are enrolled in the ambient data plane:
Delete the ZTunnel resource
- In the Alauda Container Platform web console, navigate to Administrator.
- Select Marketplace > OperatorHub.
- Search for the
Alauda Service Mesh v2. - Locate the Alauda Service Mesh v2, and click to select it.
- Click All Instances tab.
- From the Filter by instance type dropdown, select
ZTunnel. - Click the "⋮" button for the
ZTunnelresource, then click Delete in the menu. - When prompted, confirm the action by clicking Delete.
Delete the Istio resource
In the Alauda Service Mesh v2 view of OperatorHub:
- Click All Instances tab.
- From the Filter by instance type dropdown, select
Istio. - Click the "⋮" button for the
Istioresource, then click Delete in the menu. - When prompted, confirm the action by clicking Delete.
Delete the IstioCNI resource
In the Alauda Service Mesh v2 view of OperatorHub:
- Click All Instances tab.
- From the Filter by instance type dropdown, select
IstioCNI. - Click the "⋮" button for the
IstioCNIresource, then click Delete in the menu. - When prompted, confirm the action by clicking Delete.
Uninstall the Alauda Service Mesh v2 Operator
In the Alauda Service Mesh 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.
Delete the ztunnel namespace
Delete the istio-system namespace
Delete the istio-cni namespace
Uninstalling via the CLI
To uninstall the Alauda Service Mesh v2 Operator in ambient mode from an Alauda Container Platform, you must delete the following:
- Waypoint proxy
Gatewayresources ZTunnelresourceIstioresourceIstioCNIresource- Alauda Service Mesh v2 Operator
ztunnelprojectistio-systemprojectistio-cniproject
Optionally, you can also delete the Istio custom resource definitions (CRDs).
The Alauda Service Mesh v2 Operator can be uninstalled using the Alauda Container Platform command line interface (CLI).
Procedure
Delete the waypoint proxy Gateway resources
-
List all waypoint proxy Gateway resources across all namespaces:
Example output
-
Delete all waypoint proxy Gateway resources:
Example output
Remove the ambient data plane label and delete the ZTunnel resource
-
List all namespaces enrolled in the ambient data plane:
Example output
-
Remove the
istio.io/dataplane-modelabel from all enrolled namespaces: -
Get the
ZTunnelresource name by executing this command:Example output
-
Delete the
ZTunnelresource:Example output
Delete the Istio resource
-
Get the
Istioresource name by executing this command:Example output
-
Use the name from the previous command's output to replace
<name_of_custom_resource>, and then run the following to remove it:Example output
Delete the IstioCNI resource
-
Get the
IstioCNIresource by executing this command:Example output
-
Run the following to remove it:
Example output
Delete the ztunnel, istio-system, and istio-cni namespaces
-
Delete the
ztunnelnamespace with the following command:Example output
-
Delete the
istio-systemnamespace with the following command:Example output
-
Delete the
istio-cninamespace with the following command:Example output
Uninstall the Alauda Service Mesh v2 Operator
-
Delete the
servicemesh-operator2subscription:Example output
Deleting Istio custom resource definitions
The deletion of Istio custom resource definitions (CRDs) is an optional step.
Procedure
-
To delete the Istio CRDs, execute the command below: