Update: CP4D is now at major 4.5 release version. Below mentioned instructions are outdated.
📌 Note: The following instructions should be run from a Linux operating system.
- Git clone this repository
git clone https://github.com/aroute/cp4d35.git- Log in to your OpenShift cluster.
oc login ...- Increase the persistent storage for registry if not done already. DO NOT use this script for cluster provisioned via Tech Zone.
./modifyVol.sh- Activate the registry.
cd cp4d35/
./registry.sh- Tune/optimize nodes and set NFS permissions. Get your entitlement key via Container software library on My IBM.1
export entitlement_key=eyJhbGcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsed -i 's/enter_api_key/'"$entitlement_key"'/g' tune.sh./tune.sh📌 Note: The following command pulls down the installer for Linux operating system. Do not run on any other operating system.
- Get
cpd-cliutility.
./cli.sh- Ensure entitlement key variable is set properly with your key.
echo $entitlement_key- Populate your api key into
repocopy.yamlfile.
sed -i 's/enter_api_key/'"$entitlement_key"'/g' repocopy.yaml- Replace
repo.yamlfile.
rm repo.yaml && mv repocopy.yaml repo.yaml- Choose and select only one of the two storage classes. If you provisioned OpenShift cluster at Technology Zone with NFS, then select
managed-nfs-storage; otherwise, selectibmc-file-gold-gid.
export storageclass=ibmc-file-gold-gidOR
export storageclass=managed-nfs-storage📌 Note: These scripts will install CP4D in a zen project.
./00lite.sh ⏰ 30 minutes.
./01db2wdeploy.sh⏰ 15 minutes.
./02wsldeploy.sh⏰ 1 - 2 hours.
./03wmlwdeploy.sh⏰ 1 - 2 hours.
./04edbdeploy.sh⏰ 30 minutes.
📌 Note: Watson Discovery uses Block Gold storage.
./05discoverydeploy.sh⏰ 2+ hours.
Identify the default username and password via the official documentation (step 1) here.
Updated: April 2022
The following section has not been re-validated with the latest release. Do not perform any of these steps.
📌 Note: The api key is necessary for the uninstallation of DB2 Warehouse (when needed). You may skip this step if you are not uninstalling DB2 Warehouse at this point in time.
-
Using the CP4D web dashboard, create an API key for the admin account. Follow this instruction.
-
Create a profile for the admin account.
export ZENHOST=$(oc get route zen-cpd -n zen -o jsonpath='{.spec.host}')./cpd-cli config users set cpd-admin-user --username admin --apikey <your CP4D API key>./cpd-cli config profiles set cpd-admin-profile --user cpd-admin-user --url https://${ZENHOST}At the time of the writing, only two of the assemblies require patches: modeltrain-classic and watson-discovery.
First, check for available patches:
./cpd-cli status --repo ./repo.yaml --namespace zen --patches --available-updatesScroll up and look for available patches in the following section:
Patch availability check:
No info on available patches has been foundApply the two available patches.
./patch_modeltrain.sh./patch_discovery.shRe-run and check to ensure patches have been applied.
./cpd-cli status --repo ./repo.yaml --namespace zen --patches --available-updates1. The wd-discovery-ranker-* keeps failing.
Resolution provided by IBM support.
oc edit deployment/wd-discovery-ranker-monitor-agent
1.1. Update the initialDelaySeconds value in LivenessProbe to 15
1.2. Update the initialDelaySeconds in ReadinessProbe to 45
2. How do I check the status of all the assemblies?
Run the following script to check the status of the control plane, and all the deployed assemblies.
./statusall.shEnsure you have previously created an API key and a profile for the admin account (see above).
- Uninstall CP4D.
./uninstallcp4d.sh- If needed, troubleshoot stuck namespace.
oc get namespace zen -o json > tmp_zen.jsonvi tmp_zen.json Search for /finalizer - delete kubernetes line
oc replace --raw "/api/v1/namespaces/zen/finalize" -f ./tmp_zen.json1 IBM's Official Documentation: Obtaining the installation files.