This page explains how to uninstall Anthos Service Mesh.
Uninstalling Anthos Service Mesh
Run one of the following commands to uninstall the Anthos Service Mesh components that
were installed with the ASM configuration profile. These commands delete the
istio-system
namespace and all custom resource definitions (CRDs), including
any CRDs that you applied. If you created CRDs, make sure you have copies
of them.
Remove the control plane.
- If you installed Anthos Service Mesh on Anthos clusters on VMware, Anthos clusters on AWS, Amazon Elastic Kubernetes Service, or Microsoft Azure Kubernetes Service:
Remove the control plane:
istioctl manifest generate --set profile=asm-multicloud | kubectl delete --ignore-not-found=true -f -
Delete the
istio-system
namespace:kubectl delete namespace istio-system
If you installed Anthos Service Mesh on Google Kubernetes Engine:
istioctl manifest generate --set profile=asm-gcp | kubectl delete --ignore-not-found=true -f -
This command automatically deletes the
istio-system
namespace.
Turn off sidecar auto-injection on your namespace(s), if it is enabled:
kubectl get namespace YOUR_NAMESPACE --show-labels
The output is similar to the following:
NAME STATUS AGE LABELS demo Active 4d17h istio.io/rev=asm-181-5
If you see
istio.io/rev=
in the output under theLABELS
column, remove it:kubectl label namespace YOUR_NAMESPACE istio.io/rev-
If you see
istio-injection
in the output under theLABELS
column, remove it:kubectl label namespace YOUR_NAMESPACE istio-injection-
If you don't see either the
istio.io/rev
oristio-injection
labels, then auto-injection wasn't enabled on the namespace.