OSM Mesh Uninstall Troubleshooting Guide
If for any reason, osm uninstall mesh
or osm uninstall cluster-wide-resources
(as documented in the uninstall guide) fails, you may manually delete OSM resources as detailed below.
Set environment variables for your mesh:
export osm_namespace=osm-system # Replace osm-system with the namespace where OSM is installed
export mesh_name=osm # Replace osm with the OSM mesh name
export osm_version=<osm version>
export osm_ca_bundle=<osm ca bundle>
Delete OSM control plane deployments:
kubectl delete deployment -n $osm_namespace osm-bootstrap
kubectl delete deployment -n $osm_namespace osm-controller
kubectl delete deployment -n $osm_namespace osm-injector
If OSM was installed alongside Prometheus, Grafana, or Jaeger, delete those deployments:
kubectl delete deployment -n $osm_namespace osm-prometheus
kubectl delete deployment -n $osm_namespace osm-grafana
kubectl delete deployment -n $osm_namespace jaeger
If OSM was installed with the OSM Multicluster Gateway, delete it by running the following:
kubectl delete deployment -n $osm_namespace osm-multicluster-gateway
Delete OSM secrets, the meshconfig, and webhook configurations:
Warning: Ensure that no resources in the cluster depend on the following resources before proceeding.
kubectl delete secret -n $osm_namespace $osm_ca_bundle mutating-webhook-cert-secret validating-webhook-cert-secret crd-converter-cert-secret
kubectl delete meshconfig -n $osm_namespace osm-mesh-config
kubectl delete mutatingwebhookconfiguration -l app.kubernetes.io/name=openservicemesh.io,app.kubernetes.io/instance=$mesh_name,app.kubernetes.io/version=$osm_version,app=osm-injector
kubectl delete validatingwebhookconfiguration -l app.kubernetes.io/name=openservicemesh.io,app.kubernetes.io/instance=mesh_name,app.kubernetes.io/version=$osm_version,app=osm-controller
To delete OSM and SMI CRDs from the cluster, run the following.
Warning: Deletion of a CRD will cause all custom resources corresponding to that CRD to also be deleted.
kubectl delete crd meshconfigs.config.openservicemesh.io
kubectl delete crd multiclusterservices.config.openservicemesh.io
kubectl delete crd egresses.policy.openservicemesh.io
kubectl delete crd ingressbackends.policy.openservicemesh.io
kubectl delete crd httproutegroups.specs.smi-spec.io
kubectl delete crd tcproutes.specs.smi-spec.io
kubectl delete crd traffictargets.access.smi-spec.io
kubectl delete crd trafficsplits.split.smi-spec.io
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.