Lab: Enabling the MaaS Component
Estimated reading time: 20 minutes.
- Objective
-
Update the
modelsAsServicecomponent in the DataScienceCluster CR toManagedto trigger the instantiation of MaaS features. Configure the OdhDashboardConfig to enable Gen AI Studio and MaaS interface. Install and enable the Llama Stack Operator required for dashboard access.
| Not started yet. |
Before you begin
Ensure you have:
-
Cluster-admin access to an OpenShift cluster
-
Red Hat OpenShift AI 3.4 operator installed
-
All ecosystem operators installed (NFD, GPU Operator, Cert-Manager, LWS, Kueue, Kuadrant)
-
GPU nodes available in the cluster
Instructions
Step 1: Update the DataScienceCluster CR
The DataScienceCluster custom resource controls which components are enabled in OpenShift AI.
-
Get the current DataScienceCluster configuration:
$ oc get datasciencecluster default-dsc -o yaml -
Update the DataScienceCluster to enable MaaS:
apiVersion: datasciencecluster.opendatahub.io/v1 kind: DataScienceCluster metadata: name: default-dsc spec: components: dashboard: managementState: Managed kserve: managementState: Managed serving: ingressGateway: certificate: type: SelfSigned managementState: Managed name: knative-serving modelsAsService: managementState: Managed # Enable MaaS component modelregistry: managementState: Managed aipipelines: managementState: Managed kueue: managementState: Removed # Using cluster-wide installation -
Apply the updated configuration:
$ oc apply -f datasciencecluster.yaml -
Verify the MaaS component is ready:
$ oc get datasciencecluster default-dsc NAME AGE PHASE CREATED AT default-dsc 10m Ready 2024-04-02T12:00:00Z
Step 2: Configure the Dashboard for Gen AI Studio
The MaaS developer interface is located within the "Gen AI Studio" menu and must be explicitly enabled.
-
Update the OdhDashboardConfig:
apiVersion: opendatahub.io/v1alpha kind: OdhDashboardConfig metadata: name: odh-dashboard-config namespace: redhat-ods-applications spec: dashboardConfig: enablement: true disableInfo: false disableSupport: false disableClusterManager: false genAiStudio: true # Enable Gen AI Studio menu modelAsService: true # Enable MaaS interface -
Apply the dashboard configuration:
$ oc apply -f odhdashboardconfig.yaml
Step 3: Install the Llama Stack Operator
Accessing the MaaS dashboard interface requires the Llama Stack Operator.
-
Create the operator subscription:
apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: llama-stack-operator namespace: openshift-operators spec: channel: alpha name: llama-stack-operator source: redhat-operators sourceNamespace: openshift-marketplace -
Verify the operator is installed:
$ oc get csv -n openshift-operators | grep llama-stack llama-stack-operator.v0.1.0 Llama Stack Operator 0.1.0 Succeeded