Skip to content

Phase 4: RHOAI Configuration

Configures the RHOAI operator instances to enable Models-as-a-Service so the maas-api deployment starts healthy immediately.

Configure the RHOAI operator instances to enable Models-as-a-Service. Because the PostgreSQL database and maas-db-config secret already exist (Phase 3), the maas-api deployment will start healthy immediately.

Tip

All file paths and oc apply commands in this guide are relative to the CAI-Field-Manual-MaaS repository root. Make sure you have cloned it and are working from its root directory (see Getting Started).

Important

This guide is not a replacement for the official Red Hat OpenShift AI Models as a Service documentation (3.5 | 3.4). It is a companion resource with opinionated Kustomize manifests and automation scripts to accelerate deployment.

Prerequisites

  • RHOAI operator is installed and CSV is in Succeeded state
  • Phase 3 (MaaS platform) is completed — PostgreSQL is running and maas-db-config secret exists

Verify the operator is ready before proceeding:

oc get csv -n redhat-ods-operator | grep rhods-operator

Expected output (version varies):

NAME                     DISPLAY                 VERSION   REPLACES               PHASE
rhods-operator.3.5.0     Red Hat OpenShift AI    3.5.0     rhods-operator.3.4.3   Succeeded

Apply

On a fresh install, apply in two stages. The OdhDashboardConfig CRD does not exist until the RHOAI operator has reconciled the DataScienceCluster, so applying the full kustomization in one shot will fail the first time.

Note

The RHOAI operator auto-creates a default-dsci and odh-dashboard-config during installation. When you oc apply over these auto-created resources, you will see a warning: “resource is missing the kubectl.kubernetes.io/last-applied-configuration annotation”. This is harmless — the annotation is patched automatically and subsequent applies will be clean.

# Stage 1: DSC and DSCI (triggers operator reconciliation)
oc apply -f manifests/04-rhoai-config/dscinitialization.yaml

Wait until the DSCI is created (this step must complete before creating the DSC):

oc wait --for=jsonpath='{.status.phase}'=Ready \
  dscinitialization/default-dsci --timeout=600s

Create the Data Science Cluster:

oc apply -f manifests/04-rhoai-config/datasciencecluster.yaml

Enables MaaS via aigateway.modelsAsAService: Managed, the modularized path for RHOAI 3.5+.

oc apply -f manifests/04-rhoai-config/datasciencecluster-34.yaml
Warning

The kserve.modelsAsService DSC path is deprecated in RHOAI 3.5 and replaced by aigateway.modelsAsAService. Without aigateway set to Managed, regular (non-admin) users will not see the AI asset endpoints page in the Dashboard. If upgrading from 3.4, see Platform Upgrade (3.4 -> 3.5).

Apply the GPU HardwareProfile so RHOAI properly schedules GPU workloads:

oc apply -f manifests/04-rhoai-config/hardwareprofile.yaml
Note

Without this HardwareProfile, GPU model deployments may hang. The node will show nvidia.com/gpu: 0 requested even when the GPU is physically present, because RHOAI needs a HardwareProfile to map GPU resources to workloads.

The DataScienceCluster reconciles multiple components. Wait for KServe and the Model Controller (MaaS) to reach Ready:

oc wait --for=jsonpath='{.status.phase}'=Ready \
  datasciencecluster/default-dsc --timeout=600s

With the Data Science Cluster created we can now apply the dashboard configuration:

# Stage 2: Dashboard config (requires OdhDashboardConfig CRD to exist)
oc apply -f manifests/04-rhoai-config/odh-dashboard-config.yaml
Note

On subsequent runs (CRDs already exist), oc apply -k manifests/04-rhoai-config/ works in one shot. The kustomization includes the 3.5+ DSC by default - for RHOAI 3.4, apply the individual files as shown above.

Verify

Check MaaS CRDs are installed

The operator installs MaaS CRDs when Models-as-a-Service is set to Managed:

oc get crd | grep maas.opendatahub.io

Expected CRDs (RHOAI 3.4):

  • externalmodels.maas.opendatahub.io
  • maasauthpolicies.maas.opendatahub.io
  • maasmodelrefs.maas.opendatahub.io
  • maassubscriptions.maas.opendatahub.io
  • tenants.maas.opendatahub.io

RHOAI 3.5+ adds three additional CRDs:

  • aitenants.maas.opendatahub.io
  • configs.maas.opendatahub.io
  • maastenantconfigs.maas.opendatahub.io

Check maas-api deployment

Since PostgreSQL and the maas-db-config secret were created in Phase 3, the maas-api deployment should start healthy:

oc rollout status deployment/maas-api -n redhat-ai-gateway-infra --timeout=120s

In RHOAI 3.5+, maas-api runs in the redhat-ai-gateway-infra namespace.

oc rollout status deployment/maas-api -n redhat-ods-applications --timeout=120s
Tip

The maas-api deployment may take 30-60 seconds to appear after the DSC is applied. If it is not found, wait and retry.

Check Tenant / Config CR

In RHOAI 3.5+, the maas-controller auto-creates a cluster-scoped Config CR (replacing the namespaced Tenant CR from 3.4):

oc get configs.maas.opendatahub.io

The maas-controller auto-creates a default-tenant CR in the models-as-a-service namespace:

oc get tenant default-tenant -n models-as-a-service
Note

The default-tenant CR may show either Ready=True (reason Reconciled) or Ready=False (reason DeploymentsNotReady) at this stage. Both are normal - if it shows Ready=False, it will become Ready=True after a model is deployed in Phase 5.

MaaS health endpoint

CLUSTER_DOMAIN=$(oc get ingresses.config.openshift.io cluster -o jsonpath='{.spec.domain}')
curl -sk "https://maas.${CLUSTER_DOMAIN}/maas-api/health"
# Expected: {"status":"healthy"}

Check OdhDashboardConfig flags

oc get odhdashboardconfig odh-dashboard-config -n redhat-ods-applications \
  -o jsonpath='{.spec.dashboardConfig}' | jq .

Verify the following flags are set:

  • modelAsService: true - enables the Models as a Service tab
  • genAiStudio: true - enables the GenAI Studio tab (requires ogx Managed on 3.5+ or llamastackoperator Managed on 3.4)
  • observabilityDashboard: true - enables the Observability tab (requires COO + monitoring configured)
  • externalModels: true - enables the External models tab under AI hub > Models > Deployments in the Dashboard, where administrators can view deployed external models, their providers, and connection details
Important

The External models tab is a Technology Preview feature in RHOAI 3.5. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. The external models functionality itself (CRDs, CLI, gateway routing) is fully supported (GA). For CLI-based external model management, see Phase 8: External Models.

Note

The maasAuthPolicies flag was removed from the OdhDashboardConfig CRD in RHOAI 3.5. Do not include it in the manifest - the admission webhook will reject it.

What this creates

ResourcePurpose
DSCInitialization/default-dsciConfigures applications namespace, monitoring, and trusted CA bundle
DataScienceCluster/default-dscEnables all RHOAI components including KServe with modelsAsService Managed
OdhDashboardConfig/odh-dashboard-configEnables MaaS, GenAI Studio, and Observability UI tabs
HardwareProfile/gpuRegisters GPU resources with RHOAI for proper GPU scheduling

Troubleshooting

If components do not become ready:

# Inspect DSC conditions and events
oc describe datasciencecluster default-dsc

# Check operator logs
oc logs -n redhat-ods-operator deployment/rhods-operator --tail=100

# Check pods in the applications namespace
oc get pods -n redhat-ods-applications

Appendix

Directory Structure

manifests/04-rhoai-config/
  kustomization.yaml             # Aggregates all RHOAI config resources
  dscinitialization.yaml         # DSCInitialization CR
  datasciencecluster.yaml        # DataScienceCluster CR (RHOAI 3.5+, aigateway path)
  datasciencecluster-34.yaml     # DataScienceCluster CR (RHOAI 3.4, kserve path)
  odh-dashboard-config.yaml      # OdhDashboardConfig CR
  hardwareprofile.yaml           # GPU HardwareProfile for proper GPU scheduling

References

Next step

Proceed to Phase 5: Model Deployment.