Option 1: Uninstalling BAI from the OCP console
You can uninstall IBM Business Automation Insights resources from your platform deployment from the OpenShift Container Platform (OCP) console.
About this task
If you installed the BAI catalogs, and used IBM Business Automation Insights operator to create an InsightsEngine instance then you can use the OCP user interface to uninstall it. Uninstalling and cleaning up the cluster involves several separate high-level tasks.
- Uninstalling the BAI deployment.
- Uninstalling the operators.
- Deleting PVs and PVCs. If you do delete the PVs and PVCs, the persistent data along with configuration and log files are also deleted. Delete the PVCs before you delete the PVs
- Deleting the secrets created by the BAI deployment. Go to the BAI project, click
, then
right-click each secret and click Delete secret.
If you do delete all of the secrets that you created for IBM Business Automation Insights, then you must create them again if you want to install another BAI deployment.
- Deleting the BAI project.
- Uninstalling the Cloud Pak foundational services is necessary only if you want to completely clean up the cluster. The uninstallation of BAI uninstalls Cloud Pak foundation services only and does not remove the Cloud Pak foundation services operators and some of its resources. To completely remove Cloud Pak foundational services, see Uninstalling foundational services.
To uninstall the BAI deployment, use the following steps.
Procedure
What to do next
If you now plan to install another instance of the IBM Business Automation Insights on the same cluster, check if the
dependencies like Namespaces and OperandRequests are properly
deleted. If you are sharing the project with another Business Automation Insights, then do not delete the
dependencies.
- Deleting PVCs
-
If you uninstalled all the operators, then you can delete the PVCs from the project. Click for each PVC, and then click Delete PersistentVolumeClaim. Change the "Filter" to Label and enter "app=ibm-insights-engine. You can then delete the listed PVCs by clicking .
- Deleting secrets
-
- Remove the foundation subscription in the BAI namespace by clicking , selecting Subscription for
operators.coreos.com/v1alpha1in the Resource list, and then selecting Remove Subscription from theibm-bai-foundation-operatormenu. Now, all of the BAI secrets can be deleted. - To delete the secrets from the project click , and then click Delete Secret.
The BAI secrets include the strings
ibm-baiorinsightsenginein the names. The custom secrets can also be deleted, for exampleldap-bind-secret.
- Remove the foundation subscription in the BAI namespace by clicking , selecting Subscription for
- Uninstall foundational services
-
Note: If you plan to clean up your Business Automation Insights and Cloud Pak foundational services namespaces after you uninstall the foundational services, then do not delete the Cloud Pak foundational services namespace and the common-service-maps ConfigMap in kube-public namespace. The Cloud Pak foundational services and the common-service-maps ConfigMap in kube-public namespace are required when you run the bai-clean-up.sh script.
- Cleaning up your Business Automation Insights and Cloud Pak foundational services namespaces
-
You can use the
bai-clean-up.shscript to remove any resources left behind after uninstallation. The script ensures that all resources from the Business Automation Insights and Cloud Pak foundational services namespaces are properly cleaned up. If a namespace is not fully cleaned, you might be unable to delete it, or some resources may reappear if you reuse the same namespace name. If your Cloud Pak foundational services are not shared with other Cloud Paks, you can clean up both the Business Automation Insights and Cloud Pak foundational services namespaces. - Deleting the BAI project
-
Note: If deleting a project fails and the project is stuck in the Terminating state, some objects may still exist in the namespace after a force deletion. Do not use the same project name to rebuild instead use a new project name.
- Deleting the catalog sources
- If you decide to remove BAI completely, then remove the related catalog sources.
- Click , click the Configuration tab, scroll down the list, and then click OperatorHub.
- Select the Sources tab.
- Delete the following sources:
ibm-bai-operator-catalogbts-operatorcloud-native-postgresql-catalogibm-cert-manager-catalogibm-cs-install-catalog-v4-6-2ibm-cs-opensearch-catalogibm-events-operator-catalogibm-iam-operator-catalogibm-licensing-catalogibm-opencontent-flinkibm-zen-operator-catalog
- Optional: Deleting custom resource definitions
-
If you plan to remove all the Cloud Pak dependencies, the custom resource definitions (CRD) for Business Automation Insights can be deleted.Note: Do not delete the custom resource definitions if you have other Business Automation Insights deployment on the cluster.
Click , search by the name and click Delete CustomResourceDefinition.
Delete the following CRDs from the cluster.insightsengines.bai.ibm.com foundations.bai.ibm.com
