Giter Club home page Giter Club logo

cp4d35's Introduction

Deploy Cloud Pak for Data 3.5 (CP4D) on IBM Cloud OpenShift (ROKS)

๐Ÿ“Œ Note: The following instructions should be run from a Linux operating system.

Log in

  1. Git clone this repository
git clone https://github.com/aroute/cp4d35.git
  1. Log in to your OpenShift cluster.
oc login ...

Pre-requisite

  1. Increase the persistent storage for registry if not done already. DO NOT use this script for cluster provisioned via Tech Zone.
./modifyVol.sh
  1. Activate the registry.
cd cp4d35/
./registry.sh
  1. Tune/optimize nodes and set NFS permissions. Get your entitlement key via Container software library on My IBM.1
export entitlement_key=eyJhbGcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sed -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.

  1. Get cpd-cli utility.
./cli.sh
  1. Ensure entitlement key variable is set properly with your key.
echo $entitlement_key
  1. Populate your api key into repocopy.yaml file.
sed -i 's/enter_api_key/'"$entitlement_key"'/g' repocopy.yaml
  1. Replace repo.yaml file.
rm repo.yaml && mv repocopy.yaml repo.yaml
  1. 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, select ibmc-file-gold-gid.
export storageclass=ibmc-file-gold-gid

OR

export storageclass=managed-nfs-storage

Deploy

๐Ÿ“Œ Note: These scripts will install CP4D in a zen project.

Lite Assembly (control plane)

./00lite.sh 

โฐ 30 minutes.

DB2 Warehouse

./01db2wdeploy.sh

โฐ 30 minutes.

Watson Studio

./02wsldeploy.sh

โฐ 1 - 2 hours.

Watson Machine Learning

./03wmlwdeploy.sh

โฐ 1 - 2 hours.

EDB Operator

./04edbdeploy.sh

โฐ 30 minutes.

Watson Discovery

๐Ÿ“Œ Note: Watson Discovery uses Block Gold storage.

./05discoverydeploy.sh

โฐ 2+ hours.

Log in

Identify the default username and password via the official documentation (step 1) here.

Create an API key and profile for the admin account

๐Ÿ“Œ 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.

  1. Using the CP4D web dashboard, create an API key for the admin account. Follow this instruction.

  2. 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}

Patches/upgrades

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-updates

Scroll up and look for available patches in the following section:

  Patch availability check:

    No info on available patches has been found

Apply the two available patches.

./patch_modeltrain.sh
./patch_discovery.sh

Re-run and check to ensure patches have been applied.

./cpd-cli status --repo ./repo.yaml --namespace zen --patches --available-updates

Troubleshooting

1. The wd-discovery-ranker-* keeps failing.

Resolution

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?

Resolution

Run the following script to check the status of the control plane, and all the deployed assemblies.

./statusall.sh

Uninstall

Ensure you have previously created an API key and a profile for the admin account (see above).

  1. Uninstall CP4D.
./uninstallcp4d.sh
  1. If needed, troubleshoot stuck namespace.
oc get namespace zen -o json > tmp_zen.json
vi tmp_zen.json 

Search for /finalizer - delete kubernetes line

oc replace --raw "/api/v1/namespaces/zen/finalize" -f ./tmp_zen.json

References:

1 IBM's Official Documentation: Obtaining the installation files.

cp4d35's People

Contributors

aroute avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.