Validated Patterns

Deploying the Red Hat OpenShift AI Pattern

Prerequisites

The use of this pattern depends on having at least one running Red Hat OpenShift cluster. However, consider creating a cluster for deploying the GitOps management hub assets and a separate cluster for the managed cluster.

If you do not have a running Red Hat OpenShift cluster, you can start one on a public or private cloud by using Red Hat Hybrid Cloud Console.

Procedure
  1. Fork the openshift-ai repository on GitHub.

  2. Clone the forked copy of this repository.

    git clone git@github.com:your-username/openshift-ai.git
  1. If you want a peak under the covers to see what the pattern contains, you can do so with the following command:

    cat values-hub.yaml

But don’t worry if it looks intimidating.

  1. Deploy the pattern by running ./pattern.sh make install or by using the Validated Patterns Operator.

Deploying the cluster by using the pattern.sh file

To deploy the cluster by using the pattern.sh file, complete the following steps:

  1. Login to your cluster by running the following command:

     oc login

    Optional: Set the KUBECONFIG variable for the kubeconfig file path:

     export KUBECONFIG=~/<path_to_kubeconfig>
  2. Deploy the pattern to your cluster. Run the following command:

     ./pattern.sh make install

Verify Red Hat OpenShift AI Pattern installation

  1. Verify that the Operators have been installed.

    1. To verify, in the OpenShift Container Platform web console, navigate to Operators → Installed Operators page.

    2. Set your project to All Projects and verify the operators are isntalled and have a status of Succeeded.

  2. Verify that all applications are synchronized. Under the project openshift-ai-hub click the URL for the hub gitops server.

    ArgoCD Applications

    As part of this pattern, HashiCorp Vault has been installed. Refer to the section on Vault.

Verify installation by checking the OpenShift AI Dashboard

  1. Access the OpenShift AI dashboard

    RHODS=https://$(oc get route -n redhat-ods-applications -o jsonpath='{.spec.host}')
    echo ${RHODS}

You can also get to the dashboard from the OpenShift Console by selecting the application shortcut icon and then selecting the link for Red Hat OpenShift Ai

Application ShortCut

Log in to the Dashboard using your OpenShift credentials. You will find an environment that is ready for further configuration. This pattern provides the fundamental platform pieces to support MLOps workflows. The installation of OpenShift Pipelines enables the immediate use of pipelines if that is the desired approach for deployment.

OpenShift AI Dashboard