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 To uninstall Usage Engine Private Edition from the Kubernetes cluster, run the following 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 OCI 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, refresh the OCI DNS console, Networking | DNS Management | Zones | Public zones section.
Kubernetes Cluster Add-ons
To uninstall Add-ons from the Kubernetes cluster, run:
helm uninstall oci-native-ingress-controller -n uepe
helm uninstall external-dns -n uepe
helm uninstall ingress-nginx -n uepe
Cert Manager
To uninstall cert-manager-webhook-oci from the Kubernetes cluster, run:
helm uninstall cert-manager-webhook-oci -n cert-manager
cert-manager needs to be uninstalled manually under name-space cert-manager as it was added to the cluster via OCI Cluster add-ons.
kubectl delete deploy cert-manager-webhook -n cert-manager
kubectl delete deploy cert-manager-cainjector -n cert-manager
kubectl delete deploy cert-manager -n cert-manager
kubectl delete service cert-manager-webhook -n cert-manager
kubectl delete service cert-manager -n cert-manager
kubectl delete service cert-manager-cainjector -n cert-manager
OCI Resources
Manually delete unused load balancer Certificates and CA Bundles from the OCI Certificate Service via the OCI console.
Delete Persistent Volume Claim (PVC) and Persistent Volume (PV) if they had been created before.
kubectl delete -f pvc.yaml -n uepe
kubectl delete -f pv.yaml
Change directory to the terraform script directory and run the following command to remove all OCI resources created (cluster, Virtual Cloud Networks, persistent storage etc):
terraform destroy