Author: Lawrence Louie
Reviewers: Adam Davis, Alain Robert, Xiao Hua, Yan Fen Guo
This is the second step of a multi-step guide to help you generate the CP4A custom resource for an Operational Decision Manager (ODM) installation. You must complete part 1 before you begin part 2. In part 2, you run two scripts: cp4a-cluster-admin.sh and cp4a-deployment.sh. The cp4a-cluster-admin script is used to setup the cluster resources and cp4a-deployment is used to generate a custom resource file that you configure for your ODM installation in part 3.
Download the cp4a resource files
Where x is the number of the interim fix (ifix). Leave the x off if you want the quarterly release.
Setup the CP4A cluster resource:
Login to the openshift using ocadmin:
oc login -u ocadmin -p ocadmin
Run the cp4a cluster admin script
$ ./cert-kubernetes/scripts/cp4a-clusteradmin-setup.sh
1. Select 2, Openshift Container platform (OCP).
2. Select 2 for this enterprise install.
3. Use the "odm-qa" namespace.
4. Use user1 (the user that you created in part 1).
5. Provide the storage class on your openshift. For example, managed-nfs-storage.
The following screenshot shows the expected behavior:
Result:
When the script is finished, common services is installed, and the odm-qa project is created.
Generate a custom resource file with a minimum set of ODM configuration parameters.
1. Login to the OCP cluster using user1.
oc login -u user1 -p user1
2. Execute the command of "oc get route console -n openshift-console -o yaml|grep routerCanonicalHostname" in your unix shell. The value of my setup is apps.lawblog2003.cp.fyre.ibm.com.
3. Run the cp4a-deployment.sh script from cert-kubernetes/script directory.
$ ./cp4a-deployment.sh
Provide the following values when requested:
* Accept the IBM license.
* Select 1 for this new installation.
* Select "No" for OLM for this deployment.
* Select the "enterprise" deployment type.
* Select 2 for "Openshift Container Platform (OCP) - Private Cloud" for the cloud platform to deploy
The following screenshot shows the expected behavior:
* Select 2 to install Operational Decision Manager, and then press enter to complete the selection.
* Select 1, 2, 3 for decision center, rule execution server, and decision runner, and press enter to complete the selection.
* Provide the following value when requested:
- the host of the server (apps.lawblog2003.cp.fyre.ibm.com), which the value found in step 2.
- a storage class (managed-nfs-storage)
- Tivoli Directory Server
* Once you finalized your changes, it will proceed with the configuration.
Result:
Once the script is completed, the cp4a operator pod is successfully installed. You can verify the operator pod is running by using: $ kubectl get pods.
The custom resource is created in the cert-kubernetes directory: cert-kubernetes/scripts/generated-cr/ibm_cp4a_cr_final.yaml
If there's any issue occurs during this configuration setup, check the operator log, event logs, and also review the troubleshooting guide. More detail can be found here.
Next Step:
After completing all of these steps, you are ready to move to part 3. In part 3, you configure the CR for your Operational Decision Manager deployment using enterprise decisions pattern template. #cp4a
#CP4BA