Manual steps for uninstalling singleton services - Cert Manager
Uninstall the IBM Cert Manager operator. Switch to the namespace where you deployed the IBM Cert Manager. Ensure that you switch to the ibm-cert-manager
namespace unless the namespace was changed during installation of Cert Manager.
You can uninstall the Cert Manager operator with one of the following methods:
Uninstalling IBM Cert Manager using the console
To uninstall the IBM Cert Manager, complete the following steps:
- Login to the OpenShift Container Platform console as a cluster administrator.
- Delete the
CertManagerConfig
instance.- Click Operators > Installed Operators > IBM Cert Manager Operator > CertManagerConfig.
- Delete all CertManagerConfig instances.
- Uninstall the IBM Cert manager operator.
- DO NOT select the Delete all operand instances for this operator checkbox for the next step.
- Click Operators > Installed Operators > the overflow menu icon > Uninstall Operator.
- Verify that IBM Cert Manager resources are uninstalled.
- Click Workloads > Deployments.
- Ensure that the following resources are not in the list of Deployments:
- cert-manager-cainjector
- cert-manager-controller
- cert-manager-webhook
- ibm-cert-manager-operator If the services exist in the list, delete them.
- Click Networking > Services.
- Ensure that
cert-manager-webhook
is not in the Services list. Ifcert-manager-webhook
exists in the list, delete it.
- Verify that
MutatingWebhookConfiguration
andValidatingWebhookConfiguration
resources are uninstalled.- Click Home > Search > MutatingWebhookConfiguration.
- Ensure that
cert-manager-webhook
is not in theMutatingWebhookConfiguration
list. Ifcert-manager-webhook
exist in the list, delete it. - Click Home > Search > ValidatingWebhookConfiguration.
- Ensure that
cert-manager-webhook
is not in theValidatingWebhookConfiguration
list. Ifcert-manager-webhook
exist in the list, delete it.
Uninstalling IBM Cert manager using the CLI
To uninstall the IBM Cert Manager, complete the following steps:
-
Switch to the namespace where you installed the
ibm-cert-manager
operator.oc project <cert-manager-namespace>
-
Delete all the
CertManagerConfig
instances.oc get certmanagerconfig
oc delete certmanagerconfig <name>
-
Uninstall the IBM Cert Manager operator:
oc delete sub ibm-cert-manager-operator
oc get csv | grep ibm-cert-manager
oc delete csv <csv_name>
-
Verify that all IBM Cert Manager resources are deleted.
oc get deployments -n <cert-manager-namespace> -l app.kubernetes.io/component=cert-manager
oc get service -n <cert-manager-namespace> -l app=ibm-cert-manager-webhook
oc get mutatingwebhookconfiguration | grep cert-manager-webhook
oc get validatingwebhookconfiguration | grep cert-manager-webhook
If the deployments, services, and webhook configuration exist for the IBM Cert Manager, delete them.
oc delete mutatingwebhookconfiguration cert-manager-webhook
oc delete validatingwebhookconfiguration cert-manager-webhook