Redeploying a CP4BA deployment involves deleting the CP4BA custom resource (CR), running
the cp4a-uninstall-clean-up.sh script, and then reapplying the CR.
About this task
Use the following steps to clean up your CP4BA multi-pattern deployments and then reinitialize
the storage and databases for each of the capabilities.
After you completed all the clean up steps and reinitialized your allocated storage and
databases, apply the custom resource for your redeployment.
Procedure
-
To clean up a CP4BA multi-pattern deployment, use the following steps.
- Backup your CR YAML file, and check the configuration and database information.
- Delete the
ICP4ACluster
instance in the OCP console or by using OCP CLI.To
retrieve the names of the instances, run the get
command.
oc get ICP4ACluster
To delete an instance, run the
delete
command.
oc delete ICP4ACluster <MY-INSTANCE>
Wait for all the pods
to be terminated.
- Change the directory to the downloaded cert-kubernetes/scripts
folder.
cd ${PATH_TO_EXTRACTED_FILES}/cert-kubernetes/scripts
- Run the following command to clean up the
resources:
./cp4a-uninstall-clean-up.sh
- Delete the CR YAML file for the
ICP4ACluster
instance in the OCP console or by
using OCP CLI.Note: Removing the custom resource YAML file does not remove all the PVs and PVCs you
set up for your environment. Determine when you are ready to remove the persistent volumes and
claims, and to reclaim your databases for another use. The clean up steps assume that you already
analyzed your data and you are ready to delete the PVs and PVCs or delete the content in the
PVs.
Before you redeploy your deployment, you need to clean up the existing allocated storage and
databases. The following steps assume that the allocated storage and the databases do not contain
production data that you want to keep.
- Follow the extra steps according to your included components.
- If Business Automation Application is included, see Reinitializing a CP4BA deployment with Business Automation Application.
- If Business Automation Workflow is included, see Reinitializing a CP4BA deployment with Business Automation Workflow.
- If Business Automation Workflow Authoring is included, see Reinitializing a CP4BA deployment with Business Automation Workflow Authoring.
- If FNCM is included, see Reinitializing FileNet Content Manager.
- If Enterprise Records is included, see Reinitializing a CP4BA deployment with Enterprise Records.
- If Automation Decision Services is included, see Reinitializing a CP4BA deployment with Automation Decision Services.
- If Business Automation Insights is included, see Reinitializing a CP4BA deployment with Business Automation Insights.
- If Workflow Process Service Authoring is included, see Reinitializing a CP4BA deployment with Workflow Process Service Authoring.
- Reapply your
ICP4ACluster
deployment CR to create a new
instance.
- Check that all the capabilities that you want to install are
configured.
cat <custom-resource-file>.yaml
- Use the OpenShift CLI to deploy the configured capabilities and apply the custom
resource.
oc apply -f <custom-resource-file>.yaml
- To reconfigure a CP4BA deployment with IBM Content Collector for SAP
Applications, use the following steps.