Uninstallation Guide - OCI (4.2)
These uninstallation steps must be performed in sequence to ensure that all resources are being removed systematically.
Usage Engine Private Edition
Wait for few minutes for the External-DNS to cleanup OCI DNS hosted zone records. All records deleted except 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 uepehelm uninstall external-dns -n uepehelm uninstall ingress-nginx -n uepeCert Manager
To uninstall cert-manager-webhook-oci from the Kubernetes cluster, run:
helm uninstall cert-manager-webhook-oci -n cert-managercert-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-managerkubectl delete deploy cert-manager-cainjector -n cert-managerkubectl delete deploy cert-manager -n cert-managerkubectl delete service cert-manager-webhook -n cert-managerkubectl delete service cert-manager -n cert-managerkubectl delete service cert-manager-cainjector -n cert-managerOCI 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 uepekubectl delete -f pv.yamlChange 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 destroyNote!
For supporting ssl through kubernetes secrets, respective certificates and ca bundles are generated in certificate service. Terraform destroy doesn't delete these certificates and ca bundles. Therefore, these certificates and ca bundles need to be cleared by the user manually via the OCI console's Certificate service. Go to Certificates | Certificates and Certificates | CA Bundles to clear it.