Chapter 7. Installing Red Hat OpenShift Data Science components
The following procedures show how to use the command-line interface (CLI) and OpenShift Container Platform web console to install components of Red Hat OpenShift Data Science when version 2.1 of the Red Hat OpenShift Data Science Operator is already installed on your cluster.
Version 2.1 of the Red Hat OpenShift Data Science Operator is a Limited Availability feature. Limited Availability means that you can install and receive support for the feature only with specific approval from Red Hat. Without such approval, the feature is unsupported.
7.1. Installing Red Hat OpenShift Data Science components by using the CLI
The following procedure shows how to use the OpenShift command-line interface (CLI) to install specific components of Red Hat OpenShift Data Science on your OpenShift Container Platform cluster when version 2 of the Red Hat OpenShift Data Science Operator is already installed on the cluster.
Prerequisites
- Version 2 of the Red Hat OpenShift Data Science Operator is installed on your OpenShift Container Platform cluster.
- You have cluster administrator privileges for your OpenShift Container Platform cluster.
- You have downloaded and installed the OpenShift command-line interface (CLI).
Procedure
- Open a new terminal window.
In the OpenShift command-line interface (CLI), log in to your on your OpenShift Container Platform cluster as a cluster administrator, as shown in the following example:
$ oc login <openshift_cluster_url> -u system:admin
Create a
DataScienceCluster
object custom resource (CR) file, for example,rhods-operator-dsc.yaml
.apiVersion: datasciencecluster.opendatahub.io/v1 kind: DataScienceCluster metadata: name: default spec: components: codeflare: managementState: "Removed" dashboard: managementState: "Removed" datasciencepipelines: managementState: "Removed" kserve: managementState: "Removed" modelmeshserving: managementState: "Removed" ray: managementState: "Removed" workbenches: managementState: "Removed"
In the
spec.components
section of the CR, for each OpenShift Data Science component shown, set the value of themanagementState
field to eitherManaged
orRemoved
. These values are defined as follows:- Managed
- The Operator actively manages the component, installs it, and tries to keep it active. The Operator will upgrade the component only if it is safe to do so.
- Removed
- The Operator actively manages the component but does not install it. If the component is already installed, the Operator will try to remove it.
Create the
DataScienceCluster
object in your OpenShift Container Platform cluster to install the specified OpenShift Data Science components.$ oc create -f rhods-operator-dsc.yaml
You see output that resembles the following:
datasciencecluster.datasciencecluster.opendatahub.io/default created
Verification
-
In the OpenShift Container Platform web console, click Workloads
Pods. In the Project list at the top of the page, select redhat-ods-applications
. In the applications namespace, confirm that there are running pods for each of the OpenShift Data Science components that you installed. In the web console, click Operators
Installed Operators and then perform the following actions: - Click the Red Hat OpenShift Data Science Operator.
-
Click the Data Science Cluster tab and select the default
DataScienceCluster
object shown on the page. - Select the YAML tab.
-
In the
installedComponents
section, confirm that the components you installed have a status value oftrue
.
7.2. Installing Red Hat OpenShift Data Science components by using the web console
The following procedure shows how to use the OpenShift Container Platform web console to install specific components of Red Hat OpenShift Data Science on your cluster when version 2 of the Red Hat OpenShift Data Science Operator is already installed on the cluster.
Prerequisites
- Version 2 of the Red Hat OpenShift Data Science Operator is installed on your OpenShift Container Platform cluster.
- You have cluster administrator privileges for your OpenShift Container Platform cluster.
Procedure
- Log in to the OpenShift Container Platform web console as a cluster administrator.
In the web console, click Operators
Installed Operators and then click the Red Hat OpenShift Data Science Operator. The Operator details page opens.
Create a
DataScienceCluster
object to install OpenShift Data Science components by performing the following actions:- Click the Data Science Cluster tab.
- Click Create DataScienceCluster.
For Configure via, select YAML view.
An embedded YAML editor opens showing a default custom resource (CR) for the
DataScienceCluster
object.In the
spec.components
section of the CR, for each OpenShift Data Science component shown, set the value of themanagementState
field to eitherManaged
orRemoved
. These values are defined as follows:- Managed
- The Operator actively manages the component, installs it, and tries to keep it active. The Operator will upgrade the component only if it is safe to do so.
- Removed
- The Operator actively manages the component but does not install it. If the component is already installed, the Operator will try to remove it.
Click Create.
The Data Science Cluster tab reopens.
Verification
-
In the OpenShift Container Platform web console, click Workloads
Pods. In the Project list at the top of the page, select redhat-ods-applications
. In the applications namespace, confirm that there are running pods for each of the OpenShift Data Science components that you installed. In the OpenShift Container Platform web console, click Operators
Installed Operators and then perform the following actions: - Click the Red Hat OpenShift Data Science Operator.
-
Click the Data Science Cluster tab and select the default
DataScienceCluster
object shown on the page. - Select the YAML tab.
-
In the
installedComponents
section, confirm that the components you installed have a status value oftrue
.