Uninstalling the Guardium Insights instance
You can remove Guardium Insights by completing the following steps.
Before you begin
Important: The uninstallation steps are irreversible. Make sure that you back up any
data that you want to keep or move to a new installation.
Procedure
- Export the namespace where Guardium Insights is
installed.
export NAMESPACE=<guardium_insights_namespace>
- Remove the Guardium Insights instance.
oc delete `oc get guardiuminsights -oname -n ${NAMESPACE}` -n ${NAMESPACE}
The output is similar to the following example.
guardiuminsights.gi.ds.isc.ibm.com "staging" deleted
- Clean up Guardium Insights dependencies.
oc delete $(oc get tenantguc -oname) || true oc delete $(oc get tenantminisnif -oname) || true
- Remove the remaining persistent volume claims.
- Version 3.3.x
oc delete `oc get pvc -oname -n ${NAMESPACE}` -n ${NAMESPACE}
- Version 3.4.x and later
oc delete `oc get pvc -oname -n ${NAMESPACE} | grep -v icp-mongodb | grep -v common-service-db ` -n ${NAMESPACE}
- Version 3.3.x
- Remove the remaining secrets.
oc delete `oc get secrets -oname -n ${NAMESPACE} | grep <GI-INSTANCE-NAME> ` -n ${NAMESPACE}
- Remove the remaining configmaps.
oc delete `oc get cm -oname -n ${NAMESPACE} | grep <GI-INSTANCE-NAME> ` -n ${NAMESPACE}
- Uninstall the catalogs.
oc ibm-pak launch $CASE_NAME \ --version $CASE_VERSION \ --namespace ${NAMESPACE} \ --inventory install \ --action uninstall-catalog \ --args "--inputDir ${LOCAL_CASE_DIR}"
- Uninstall the operators:
- Version 3.3.x
oc ibm-pak launch $CASE_NAME \ --version $CASE_VERSION \ --namespace ${NAMESPACE} \ --inventory install \ --action uninstallOperator \ --args "--inputDir ${LOCAL_CASE_DIR}"
- Version 3.4.x and later
oc ibm-pak launch $CASE_NAME \ --version $CASE_VERSION \ --inventory install \ --action uninstall-operator \ --namespace ${NAMESPACE} \ --args "--registry cp.icr.io --user ${CP_REPO_USER} --pass ${CP_REPO_PASS} --secret ibm-entitlement-key --inputDir ${LOCAL_CASE_DIR}"
- Version 3.3.x
- Switch to the
default
namespace (if inside the Guardium Insights namespace) and delete the Guardium Insights namespace:oc project default oc delete project ${NAMESPACE}
Important:- Deleting this namespace removes IBM Cloud Pak® foundational services and IBM® Common Services because they are installed in the same namespace as Guardium Insights. If you want to keep IBM Cloud Pak foundational services and IBM Common Services in this namespace, skip this step.
- This action can take a few minutes to complete. During this time, the project appears as
Terminating
.
- To uninstall the IBM Common Services operators, complete the steps in Uninstalling foundational services.