Search

Chapter 7. Installing Red Hat OpenShift Data Science components

download PDF

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.

Important

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

  1. Open a new terminal window.
  2. 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
  3. 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"
  4. In the spec.components section of the CR, for each OpenShift Data Science component shown, set the value of the managementState field to either Managed or Removed. 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.
  5. 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 of true.

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

  1. Log in to the OpenShift Container Platform web console as a cluster administrator.
  2. In the web console, click Operators Installed Operators and then click the Red Hat OpenShift Data Science Operator.

    The Operator details page opens.

  3. Create a DataScienceCluster object to install OpenShift Data Science components by performing the following actions:

    1. Click the Data Science Cluster tab.
    2. Click Create DataScienceCluster.
    3. For Configure via, select YAML view.

      An embedded YAML editor opens showing a default custom resource (CR) for the DataScienceCluster object.

    4. In the spec.components section of the CR, for each OpenShift Data Science component shown, set the value of the managementState field to either Managed or Removed. 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.
  4. 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 of true.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.