Setting up the cluster for Watson Assistant

If you plan to install Watson Assistant on IBM® Cloud Pak for Data, a cluster administrator must set up the cluster for Watson Assistant.

Before you begin

Required role: To complete this task, you must be a cluster administrator.

Before you set up the cluster for Watson Assistant, ensure that:

Tip: For a list of all available options, enter the following command:
./cpd-cli adm --help
Complete this additional prerequisite step:
  1. If you are installing the service on Red Hat OpenShift 3.11, you must add a new Kubernetes label for the worker nodes. The label used by 3.11 is an outdated version. Set the label to kubernetes.io/arch. The correct label is used automatically on Red Hat OpenShift 4.5 and later versions.
    Add the label to the nodes by running the following command:
    oc label node -l beta.kubernetes.io/arch=amd64 kubernetes.io/arch=amd64
The repo.yaml file to install Watson Assistant alone looks as follows.
registry:
  # Lite
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp/cpd"
    name: base-registry
  # Watson Assistant
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp/watson-assistant"
    name: wa-registry
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp/watson-assistant"
    name: wa-registry-operator
  # ElasticSearch
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp"
    name: elasticsearch-registry
  # Etcd
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp"
    name: entitled-registry
  # Gateway, Redis, Minio, ElasticSearch
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp"
    name: prod-entitled-registry
  # For EDB operator
  - url: cp.icr.io
    username:
    apikey:
    namespace: "cp/cpd"
    name: databases-registry
fileservers:
  - url: https://raw.github.com/IBM/cloud-pak/master/repo/cpd/3.5
The components that are necessary to process some natural languages require more resources. The following languages require that additional CPU and memory be available for the installation.
Language Pods for production Pods for development Additional memory requirements per pod
German 2 1 2 GB
Japanese 2 1 2 GB
Korean 2 1 4 GB
For the full list of supported languages, see the online product documentation.

Procedure

  1. Set up the cluster for Watson Assistant by completing the appropriate task for your environment:
  2. Complete the tasks listed in What to do next

Preparing clusters connected to the internet

From your installation node:

  1. Change to the directory where you placed the Cloud Pak for Data command-line interface and the repo.yaml file.
  2. Log in to your Red Hat OpenShift cluster as an administrator:
    oc login OpenShift_URL:port
  3. Run the following command to see a preview of the list of resources that must be created on the cluster:
    ./cpd-cli adm \
    --repo ./repo.yaml \
    --assembly watson-assistant \
    --arch Cluster_architecture \  
    --namespace Project \
    --latest-dependency
    Important: By default, this command gets the latest version of the assembly. If you want to install a specific version of Watson Assistant, add the following line to your command after the --assembly flag:
    --version Assembly_version \

    Additionally, you can remove the --latest-dependency flag to get the minimum required version of any software that Watson Assistant is dependent on.

    Tell the person who will install Watson Assistant whether you used either of these flags. The install command must be run with the same flags.

    Replace the following values:

    Variable Replace with
    Assembly_version
    The version of Watson Assistant that you want to install. The assembly versions are listed in System requirements for services.
    Cluster_architecture Specify the architecture of your cluster hardware:
    • For x86-64 hardware, remove this flag or specify x86_64
    Project The project where the Cloud Pak for Data control plane is installed.

    The command returns a list of the changes that you must make to your cluster to ensure that Watson Assistant can run on your cluster.

  4. Make the necessary changes to your cluster. You can choose one of the following methods to make the changes:
    To automatically apply the changes to your cluster:
    Re-run the cpd adm command with the --apply flag:
    ./cpd-cli adm \
    --repo repo.yaml \
    --assembly watson-assistant \
    --arch Cluster_architecture \
    --namespace Project \
    --apply

    Replace the variables with the same values that you used the last time you ran the command.

    To manually apply the changes to your cluster:
    Follow the appropriate procedures from the Red Hat OpenShift documentation to complete the required tasks.

Preparing air-gapped clusters

From your installation node:

  1. Do not start this procedure until you have completed the steps in Preparing for air-gapped installations to download the required files for the service.
  2. Change to the directory where you placed the Cloud Pak for Data command-line interface.
  3. Log in to your Red Hat OpenShift cluster as an administrator:
    oc login OpenShift_URL:port
  4. Run the following command to see a preview of the list of resources that must be created on the cluster:
    ./cpd-cli adm \
    --assembly watson-assistant \
    --arch Cluster_architecture \
    --namespace Project \
    --load-from Image_directory_location \
    --latest-dependency
    Note: If the assembly was downloaded using the delta-images command, remove the --latest-dependency flag from the command. If you don't remove the --latest-dependency flag you will get an error indicating that the flag cannot be used.

    Tell the person who will install Watson Assistant whether you used the --latest-dependency flag. If you run this command with the --latest-dependency flag, the install command must also be run with the flag.

    Replace the following values:

    Variable Replace with
    Cluster_architecture Specify the architecture of your cluster hardware:
    • For x86-64 hardware, remove this flag or specify x86_64
    Project The project where the Cloud Pak for Data control plane is installed.
    Image_directory_location The location of the cpd-cli-workspace directory.

    The command returns a list of the changes that you must make to your cluster to ensure that Watson Assistant can run on your cluster.

  5. Make the necessary changes to your cluster. You can choose one of the following methods to make the changes:
    To automatically apply the changes to your cluster:
    Re-run the cpd adm command with the --apply flag:
    ./cpd-cli adm \
    --assembly watson-assistant \
    --arch Cluster_architecture \
    --namespace Project \
    --load-from Image_directory_location \
    --latest-dependency \
    --apply

    Replace the variables with the same values that you used the last time you ran the command.

    For example:
    cpd-cli adm \
      --assembly watson-assistant \
      --namespace zen \
      --load-from cpd-cli-workspace \
      --latest-dependency \
      --apply
    To manually apply the changes to your cluster:
    Follow the appropriate procedures from the Red Hat OpenShift documentation to complete the required tasks.

What to do next

Creating an override file for Watson Assistant