These uninstallation steps must be performed in sequence to ensure that all resources are being removed systematically.
Usage Engine Private Edition
Note!
You must delete all ECDs (EC Deployments) prior to uninstalling Usage Engine Private Edition.
You can delete ECDs using Desktop Online in the Manage | Tools & Monitoring | EC Deployment view.
You can also use the command kubectl delete ecd <your ecd name> -n <namespace>
to delete the ECD.
To uninstall Usage Engine Private Edition from the Kubernetes cluster, run the following command:
helm uninstall <uepe release name> -n uepe --wait
Note!
You must delete all ECDs (EC Deployments) prior to uninstalling Usage Engine Private Edition.
You can delete ECDs using Desktop Online in the Manage | Tools & Monitoring | EC Deployment view.
You can also use the command kubectl delete ecd <your ecd name> -n <namespace>
to delete the ECD.
helm uninstall <uepe release name> -n uepe --wait
Wait a few minutes for External-DNS to clean up the Cloud DNS hosted zone records that were added earlier during the installation. All records will be deleted except for SOA and NS records.
Hint!
To monitor the hosted zone records cleanup, user may refresh Cloud DNS console, Zone details | RECORD SETS section.
GCP Managed Certificate
To view the managed certificate from GCP Certificate Manager, run:
kubectl get managedCertificate -n uepe
To remove the managed certificate from GCP Certificate Manager, run:
kubectl delete managedCertificate managed-cert -n uepe
Kubernetes Cluster Add-ons
To uninstall Add-ons from the Kubernetes cluster run:
helm uninstall external-dns -n uepe
helm uninstall ingress-nginx -n uepe
Cert Manager
To uninstall cert-manager from the Kubernetes cluster, run:
helm uninstall cert-manager -n cert-manager
GCP Resources
Delete the Persistent Volume Claim (PVC) and Persistent Volume (PV) if they had been created earlier. Change directory to the terraform script directory. Change directory to the manifests directory.
cd <terraform script directory>/manifests
kubectl delete -f filestore_persistence.yaml -n uepe
Change directory to the terraform script directory and run the following command to remove all GCP resources created (cluster, VPC, persistent storage etc):
terraform destroy