git clone git@github.com:your-username/openshift-ai.git
Deploying the Red Hat OpenShift AI Pattern
An OpenShift cluster
To create an OpenShift cluster, go to the Red Hat Hybrid Cloud console.
Select Services -> Containers -> Create cluster.
The cluster must have a dynamic
StorageClass
to provisionPersistentVolumes
. See sizing your cluster.
Optional: A second OpenShift cluster for multicloud demonstration.
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.
Fork the openshift-ai repository on GitHub.
Clone the forked copy of this repository.
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.
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:
Login to your cluster by running the following command:
oc login
Optional: Set the
KUBECONFIG
variable for thekubeconfig
file path:export KUBECONFIG=~/<path_to_kubeconfig>
Deploy the pattern to your cluster. Run the following command:
./pattern.sh make install
Verify Red Hat OpenShift AI Pattern installation
Verify that the Operators have been installed.
To verify, in the OpenShift Container Platform web console, navigate to Operators → Installed Operators page.
Set your project to
All Projects
and verify the operators are isntalled and have a status ofSucceeded
.
Verify that all applications are synchronized. Under the project
openshift-ai-hub
click the URL for thehub
gitopsserver
.As part of this pattern, HashiCorp Vault has been installed. Refer to the section on Vault.
Verify installation by checking the OpenShift AI Dashboard
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
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.