Cloud Pak for Data

Install Add-Ons on Vmware OCP environment

Set Up the OpenShift Client CLI Tools and Access the Cluster

  1. If you haven’t done so already, install the OpenShift client CLI tools using the directions at here.
  2. Login to the OpenShift console. In the upper right hand side of the page, click on your user name and select “Copy Login Command”.


  1. Paste the command in a shell and a response will be returned with a list of projects and the current project selected.

Set Up the CP4D “” for Add-On Installation

  1. Retrieve the CP4D installer and only extract its contents using the “–extract-only” switch. For example, ”./installer.x86_64.520 –extract-only”
  2. The “” script that will be used later to install an add-on will be located at “/ibm/InstallPackage/components/”.

Install helm and tiller

  1. Download helm tool

    $ curl -s | tar xz
  2. Copy the helm too to /bin directory

    $ cp -f ./linux-amd64/helm /usr/local/bin/ /usr/bin/
  3. Check “helm” version

    $ helm version
  4. Configure “helm” with OpenShift server

    $ oc whoami - find the logged in user (1)
    $ oc whoami –t - To find password (2)
    $ oc get routes –n default àFind the docker registry url (3)
    $ docker login –u openshift –u <password> https://<url from the command 3>
  5. List the deployed helm charts in the server

    $oc get pods –all-namespacs | grep tiller
    $ export TILLER_NAMESPACE=<namespace> --> Namespace of the tiller running in Server $ helm list

Get the Add-On to be Installed

For this example, the “Watson Machine Learning” add-on tar will be used. Download the add-on code and place it somewhere like “/ibm/modules”

Install the Add-On

”./ -o -d /ibm/modules/watson_machine_learning.tar”

Lesson Learn

Running “helm list” failed after “helm version” succeeded.

[root@res-cdoan-29918d73-master-01 ~]# helm list
Error: Get http://localhost:8080/api/v1/namespaces/zen/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp connect: connection refused
[root@res-cdoan-29918d73-master-01 ~]#



  oc --namespace=zen create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=zen:default created


  oc -n zen edit deployment  tiller-deploy
Edit Tiller Deploy
Edit Tiller Deploy