Installing Red Hat OpenShift Serverless Knative Eventing
If you plan to install IBM watsonx Assistant or IBM watsonx™ Orchestrate, you must have Red Hat OpenShift Serverless Knative Eventing and IBM Events on the cluster.
- Installation phase
-
Setting up a client workstation
Setting up a cluster
Collecting required information
Preparing to run installs in a restricted network
Preparing to run installs from a private container registry
Preparing the cluster for IBM Software Hub
Preparing to install an instance of IBM Software Hub
Installing an instance of IBM Software Hub
Setting up the control plane
Installing solutions and services
- Who needs to complete this task?
-
Cluster administrator A cluster administrator must install this software.
- When do you need to complete this task?
-
Complete this task only if you plan to install one of the following services:
- watsonx Assistant
- watsonx Orchestrate
One-time setup The Red Hat OpenShift Serverless Knative Eventing and IBM Events are installed once and shared by all instances of watsonx Assistant or watsonx Orchestrate on the cluster.
Before you begin
oc new-project ${PROJECT_IBM_EVENTS}If your cluster is not in a restricted network, skip this section and go to About this task.
If your cluster is in a restricted network, you have two options for ensuring you can access the required images:
- Option 1
- You can run the
deploy-knative-eventingcommand while the workstation is connected to the cluster and the following websites:- Red Hat OpenShift image registry
- IBM Entitled Registry
- GitHub (optional)
- Option 2
- You can preinstall the Red Hat OpenShift Serverless Operator
and IBM Events Operator:
- You must install the Red Hat OpenShift Serverless Operator
before you complete this task. For more information, see Installing the OpenShift Serverless Operator:
- Version 1.33
- Version 1.34
- Version 1.35
- Version 1.36 (recommended)
To mirror the images for the Red Hat OpenShift Serverless Operator to a private container registry, see Mirroring images for a disconnected installation - You must have the IBM Cloud Pak foundational services
CASE package in the
workdirectory on the workstation from which you will complete this task.If you do not have the CASE package, you must run the following command while the client workstation is connected to the internet:
GitHub
cpd-cli manage case-download \ --components=cpfs \ --release=${VERSION}
IBM Cloud Pak Open Container Initiative
cpd-cli manage case-download \ --components=cpfs \ --release=${VERSION} \ --from_oci=true
Some other Open Container Initiative repository
cpd-cli manage case-download \ --components=cpfs \ --release=${VERSION} \ --from_oci=true \ --oci_location=${OCI_REGISTRY_LOCATION}
- If the IBM Events Operator is not installed on
your cluster, run the following commands:
- Authorize the projects where the software will be installed to
communicate:
cpd-cli manage authorize-instance-topology \ --release=${VERSION} \ --cpd_operator_ns=ibm-knative-events \ --cpd_instance_ns=knative-eventing - Install the IBM Events Operator in the
ibm-knative-eventsproject:cpd-cli manage setup-instance-topology \ --release=${VERSION} \ --cpd_operator_ns=ibm-knative-events \ --cpd_instance_ns=knative-eventing \ --block_storage_class=${STG_CLASS_BLOCK} \ --license_acceptance=true
- Authorize the projects where the software will be installed to
communicate:
- You must install the Red Hat OpenShift Serverless Operator
before you complete this task. For more information, see Installing the OpenShift Serverless Operator:
Ensure that you source the environment variables before you run the commands in this task.
About this task
When a user adds, modifies, or deletes actions in an assistant, watsonx Assistant starts a training job. The watsonx Assistant user interface communicates with the machine learning model through a message broker.
Red Hat OpenShift Serverless Knative Eventing and IBM Events provide a central Kafka broker for any instances of watsonx Assistant on the cluster.
You can run the deploy-knative-eventing command to
install the Red Hat OpenShift Serverless Knative Eventing and IBM Events software.
- Installing a proof-of-concept or evaluation environment
- Setting up a simple Kafka instance for use with IBM Software Hub
- Version 1.33
- Version 1.34
- Version 1.35
- Version 1.36 (recommended)
When you run the deploy-knative-eventing command, the
following operators are installed once and shared by all instances of IBM Software Hub on the cluster:
| Software | Installation project |
|---|---|
| Red Hat OpenShift Serverless Operator |
This software is installed in the |
| Knative Eventing Operator |
This software is installed in the |
| Knative Kafka Operator |
This software is installed in the |
| IBM Events Operator |
This software is installed in the However, if you have an existing IBM Events Operator installation, you can optionally point to the operator associated with that installation if it is cluster-scoped. Important: The IBM Events Operator that is
provided by IBM Software Hub is not a cluster-scoped
operator. The operator is scoped only to instances of IBM Software Hub.
|
In addition, the command sets up a Knative broker in the knative-eventing project. The broker is backed by an instance of
Apache Kafka that is managed by the IBM Events Operator.
Procedure
To install Red Hat OpenShift Serverless Knative Eventing: