Uninstalling

Remove the PEM deployment from OpenShift Container Platform and clean up associated resources.

About this task

When you no longer need PEM on your OpenShift Container Platform cluster, you can uninstall the Helm chart and remove associated resources.

Procedure

  1. Uninstall the Helm chart

    To uninstall or delete the PEM deployment, run:

    helm delete my-release --purge

    Replace my-release with your actual release name.

  2. Clean up pre-install resources

    Since certain Kubernetes resources are created using the pre-install hook, the Helm delete command will attempt to delete them as a post-delete activity. If the deletion fails, you must manually delete the following resources:

    • ConfigMap: <release-name>-Migrator-Setupfile
    • ConfigMap: <release-name>-Dbutils-Setupfile
    • PersistentVolumeClaim (if persistence is enabled): <release-name>-resources-pvc
    • PersistentVolumeClaim (if logs are enabled): <release-name>-logs-pvc
  3. Delete remaining resources manually

    If needed, manually delete the resources using:

    oc delete configmap <release-name>-Migrator-Setupfile
    oc delete configmap <release-name>-Dbutils-Setupfile
    oc delete pvc <release-name>-resources-pvc
    oc delete pvc <release-name>-logs-pvc
  4. Clean up secrets and persistent volumes

    Consider deleting the secrets and persistent volumes created as part of the prerequisites after creating their backups:

    oc delete secret <secret-name>
    oc delete pv <persistent-volume-name>