This guide will walk through installing Open Data Hub and TrustyAI into your cluster. Starting from a completely blank cluster, you will be left with:
- An Open Data Hub installation
- A namespace to deploy models into
- A TrustyAI Operator, to manage all instances of the TrustyAI Service
- A TrustyAI Service, to monitor and analyze all the models deployed into your model namespace.
- Make sure you are
oc login
'd to your OpenShift cluster - Create two projects,
opendatahub
andmodel-namespace
. These names are arbitrary, but I'll be using them throughout the rest of this demo:oc new-project opendatahub
oc new-project model-namespace
- Prepare the
model-namespace
for ODH's model serving:oc label namespace model-namespace "modelmesh-enabled=true" --overwrite=true
To get enable ODH's monitoring stack , user-workload-monitoring must be configured:
- Enable user-workload-monitoring:
oc apply -f resources/enable_uwm.yaml
- Configure user-workload-monitoring to hold metric data for 15 days:
oc apply -f resources/uwm_configmap.yaml
Depending on how your cluster was created, you may need to enable a User Workload Monitoring setting from your cluster management UI (for example, on console.redhat.com)
- From the OpenShift Console, navigate to "Operators" -> "OperatorHub", and search for "Open Data Hub"
- Click on "Open Data Hub Operator".
- If the "Show community Operator" warning opens, hit "Continue"
- Hit "Install".
- From the "Install Operator" screen:
- Make sure "All namespaces on the cluster" in selected as the "Installation Mode":
- Hit install
- Wait for the Operator to finish installing
If the provided ODH version in your cluster's OperatorHub is version 2.x, use the following steps:
- Install the community Authorino Operator. At the time of writing, Authorino 0.11.1 is verified to be compatible.
- Install the Red Hat OpenShift Serverless operator.
- Install the Red Hat OpenShift Service Mesh operator.
- Navigate to your
opendatahub
project - From "Installed Operators", select "Open Data Hub Operator".
- Navigate to the "DSC Initialization" tab and hit "Create DSCInitialization", then install the default DSCI. Once the DSCI reports "Ready", move on to step 4.
- Navigate to the "Data Science Cluster" tab and hit "Create DataScienceCluster"
- In the YAML view Make sure
trustyai
is set toManaged
: - Hit the "Create" button
- Within the "Pods" menu, you should begin to see various ODH components being created, including the
trustyai-service-operator-controller-manager-xxx
- Navigate to your
model-namespace
project:oc project model-namespace
- Run
oc apply -f resources/trustyai_crd.yaml
. This will install the TrustyAI Service into yourmodel-namespace
project, which will then provide TrustyAI features to all subsequent models deployed into that project, such as explainability, fairness monitoring, and data drift monitoring,
If the provided ODH version in your cluster's OperatorHub is version 1.x, use the following steps:
- Navigate to your
opendatahub
project - From "Installed Operators", select "Open Data Hub Operator".
- Navigate to the "Kf Def" tab
- Hit "Create KfDef"
- Hit "Create" without making any changes to the default configuration
- Within the "Pods" menu, you should begin to see various ODH components being created
- Navigate to your
opendatahub
project:oc project opendatahub
- Run
oc apply -f resources/trustyai_operator_kfdef.yaml
. This will install the TrustyAI Operator into youropendatahub
namespace alongside the ODH installation. - Within the "Pods" menu, you should see the TrustyAI Operator pod being created
- Navigate to your
model-namespace
project:oc project model-namespace
- Run
oc apply -f resources/trustyai_crd.yaml
. This will install the TrustyAI Service into yourmodel-namespace
project, which will then provide TrustyAI features to all subsequent models deployed into that project, such as explainability, fairness monitoring, and data drift monitoring,