Phase 0: Disconnected Setup
Additional steps to deploy Red Hat OpenShift AI Models as a Service on an air-gapped (disconnected) OpenShift cluster.
This phase is only needed for disconnected environments where the cluster has no internet access. For connected clusters, skip directly to Phase 1.
Overview
A disconnected OpenShift cluster pulls all container images from a private mirror registry instead of the public registries. Before deploying MaaS, the operator catalogs and container images must be mirrored to that registry.
This guide assumes:
- OpenShift 4.20+ is already installed in disconnected mode
- Red Hat OpenShift AI 3.4 / 3.5 operators are installed (rhods-operator, cert-manager, NFD, GPU operator)
- A mirror registry is running and the cluster trusts its CA
- ImageDigestMirrorSet (IDMS) and CatalogSources from the RHOAI mirror are already applied
The MaaS guide adds 10 operators and several container images that are NOT part of the base RHOAI mirror set. This phase mirrors those extra components.
Currently, oc-mirror mirrors all images referenced in the RHOAI operator bundle regardless of which DSC components you enable. There is an initiative (RHOAIENG-75890 / OCPSTRAT-3350) to support selective mirroring - so you can mirror only the images for the components you need (e.g. Dashboard + MaaS). Until that lands, this guide mirrors the full set.
MaaS operators to mirror
| Operator | Package Name | Purpose |
|---|---|---|
| Red Hat Connectivity Link | rhcl-operator | API gateway, auth (Authorino), rate limiting (Limitador) |
| Authorino Operator | authorino-operator | Auth engine (RHCL dependency, required >= 1.4.2) |
| DNS Operator | dns-operator | DNS policy (RHCL dependency, required >= 1.4.1) |
| Limitador Operator | limitador-operator | Rate limiting engine (RHCL dependency, required >= 1.4.1) |
| Leader Worker Set | leader-worker-set | Distributed inference coordination |
| MetalLB | metallb-operator | LoadBalancer service for the MaaS gateway |
| Cluster Observability Operator | cluster-observability-operator | Monitoring stack |
| OpenTelemetry | opentelemetry-product | Distributed tracing |
| Tempo | tempo-product | Trace storage backend |
| Loki Operator | loki-operator | Log storage for the Phase 7 usage dashboards |
Additional images to mirror
The vLLM CUDA runtime is published under registry.redhat.io/rhaii/ (double ‘i’, no trailing ’s’). Some upstream references incorrectly use rhaiis/ - this will fail on disconnected clusters because the IDMS only covers rhaii/. The model manifests in this guide already use the correct rhaii/ path with a pinned digest. See RHOAIENG-82814.
Images not discoverable through operator bundles:
| Image | Purpose |
|---|---|
registry.redhat.io/rhel9/postgresql-16@sha256:3943... (pinned digest) | MaaS PostgreSQL database |
registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:5800... (pinned digest) | vLLM CUDA runtime for GPU models |
registry.access.redhat.com/rhcl-1/wasm-shim-rhel9@sha256:... (pinned digest) | Kuadrant WASM shim for gateway auth and rate limiting (see wasm-shim) |
ghcr.io/llm-d/llm-d-inference-sim:v0.7.1 | Simulator runtime (CPU-only model) |
quay.io/rh-aiservices-bu/minio:RELEASE.2025-09-07T16-13-09Z | MinIO S3 backend for the LokiStack (usage dashboards) |
quay.io/rh-aiservices-bu/mc:latest | MinIO client, creates the loki bucket (floating tag, pin it for a reproducible mirror) |
registry.redhat.io/rhai/modelcar-granite-4-0-h-tiny-fp8-dynamic:3.0 | Granite 4.0-h-tiny model weights |
registry.redhat.io/rhelai1/modelcar-gpt-oss-20b:1.5 | GPT-oss-20b model weights |
registry.redhat.io/rhelai1/modelcar-gemma-2-9b-it-fp8:1.5 | Gemma 2 9B IT FP8 model weights |
registry.redhat.io/openshift-service-mesh/istio-pilot-rhel9@sha256:... (pinned digest) | Istiod control plane (OpenShift >= 4.20.32 only, see istiod-images) |
registry.redhat.io/openshift-service-mesh/proxyv2-rhel9@sha256:... (pinned digest) | Envoy proxy / gateway data plane (OpenShift >= 4.20.32 only, see istiod-images) |
The WASM shim image lives on registry.access.redhat.com (not registry.redhat.io). This is a different registry. The WASM shim digest changes with each RHCL operator version - see wasm-shim for how to discover it.
Mirroring workflow
Step 1: Mirror the MaaS content
An ImageSetConfiguration is provided at manifests/00-disconnected/imageset-config-maas.yaml. It includes all the operators (Red Hat OpenShift AI base + MaaS) and the additional images listed above.
Before running oc-mirror, discover the WASM shim digest for your RHCL version and update the ImageSetConfiguration:
On OpenShift 4.20.32 and later, the openshift-ingress operator embeds the Istio sail library instead of installing a standalone OSSM operator. The istiod and proxyv2 images it pulls are NOT in the OCP release payload and NOT in any operator catalog. They must be mirrored explicitly.
On OpenShift < 4.20.32, the servicemeshoperator3 catalog entry covers these images and you can skip this block.
To discover the digests, you need a connected reference cluster running the same OpenShift version with a Gateway already created (creating a Gateway triggers istiod provisioning):
Replace <ISTIOD_DIGEST> and <PROXYV2_DIGEST> in imageset-config-maas.yaml with the digests from the commands above.
If you do not have a connected reference cluster with a Gateway, check the OpenShift release notes for your z-stream. The istiod and proxyv2 images are listed under the Service Mesh / Gateway API components.
On a connected system (jump box) with oc-mirror v2 and a valid pull secret:
If the RHOAI operators are already mirrored, oc-mirror only downloads the 6 new MaaS operators and the additional images. The run is incremental.
Step 2: Transfer to the disconnected side
Transfer the archive to the disconnected host. Use rsync for resumable transfers:
Step 3: Push to the mirror registry
On the disconnected host, push the content into the mirror registry:
This produces IDMS/ITMS and CatalogSource files in working-dir/cluster-resources/.
Step 4: Apply cluster resources
Apply the generated resources to the cluster:
If the cluster already has a CatalogSource alias named redhat-operators, update it to point to the new catalog index image (which now includes the MaaS operators):
Step 5: Create ITMS for modelcar images
oc-mirror creates ImageDigestMirrorSet (IDMS) entries for images referenced by digest, but OCI modelcar images use tags (e.g. :3.0, :1.5). CRI-O needs an ImageTagMirrorSet (ITMS) to redirect tag-based pulls to the mirror registry.
A ready-to-use ITMS manifest is provided at manifests/00-disconnected/itms-maas-modelcars.yaml. It covers rhai/, rhelai1/, registry.access.redhat.com/rhcl-1/, and ghcr.io/llm-d namespaces.
Check if ITMS entries already exist:
If no ITMS entries exist, apply the manifest (replace the placeholder with your mirror address):
Replace <your-registry>:<port>/<ns> with your mirror registry address (the same one used in Step 3).
Applying ITMS triggers a MachineConfig update. Worker nodes will reboot in a rolling fashion. Wait for oc get mcp worker to show UPDATED=True before continuing.
Batch all ITMS/IDMS changes into a single oc apply. Do not add them incrementally - each apply triggers a separate MachineConfig rollout with node reboots.
Step 6: Patch RHCL for WASM shim
The Kuadrant/RHCL WASM shim is loaded at runtime by the Envoy gateway pod using the OCI protocol. This fetch does not go through CRI-O and does not respect IDMS/ITMS/ICSP. On a disconnected cluster, the gateway tries to reach registry.access.redhat.com directly. When it fails, Kuadrant applies a deny-all RBAC filter and every request returns “RBAC: access denied”.
The fix is to set the RELATED_IMAGE_WASMSHIM environment variable on the RHCL operator subscription, which tells the operator to serve the shim from the mirrored image via its internal cluster service instead of having the gateway fetch it from the public registry.
First, find the WASM shim digest from the installed RHCL CSV:
Build the mirrored image reference (replace the source registry with your mirror):
Patch the RHCL subscription:
Wait for the RHCL operator pod to restart with the new env var:
After the operator restarts, delete the gateway pod so it picks up the new WASM shim location:
If the mirror registry uses a self-signed CA, the gateway pod may fail with a TLS certificate error when fetching the WASM shim. Ensure the mirror registry CA is in the cluster’s proxy/trust bundle (oc get proxy/cluster -o jsonpath='{.spec.trustedCA.name}').
Verification
Confirm all MaaS operators are available:
All 10 should resolve to a CatalogSource. If any show NOT FOUND, the mirror set is incomplete - check the oc-mirror output for errors.
Verify the gateway pod has no WASM errors:
If you see cannot fetch Wasm module or applying deny RBAC filter, the WASM shim patch from wasm-shim was not applied or the image is not in the mirror registry.
CPU MachineSet (optional)
If the cluster has no dedicated CPU worker nodes and you plan to deploy the CPU-only models (simulator, qwen3-06b), create a CPU MachineSet.
A template is provided at manifests/00-disconnected/cpu-machineset.yaml. It is the same shape as the GPU template but sets no taint - the GPU model manifests tolerate nvidia.com/gpu, while the CPU model manifests carry no tolerations, so a taint here would leave their pods Pending.
On IPI-installed AWS clusters the worker MachineSet references its subnet by tag filter, not by ID, which is why SUBNET_NAME reads the filter value. If oc get machineset ... subnet.filters[0].values[0] returns nothing, your cluster pins an explicit subnet ID instead - edit the template’s subnet block to use id: <subnet-id>.
The node comes up labelled node-role.kubernetes.io/cpu-inference. m6i.2xlarge (8 vCPU / 32 GiB) is the minimum for qwen3-06b; m6i.4xlarge (16 vCPU / 64 GiB) leaves room for platform pods as well.
GPU setup (optional)
GPU MachineSet
If the cluster has no GPU nodes and you plan to deploy GPU models (Gemma, Granite, GPT-oss), create a GPU MachineSet.
A template is provided at manifests/00-disconnected/gpu-machineset.yaml. Before applying, discover the cluster-specific values:
On IPI-installed AWS clusters the worker MachineSet references its subnet by tag filter, not by ID, which is why SUBNET_NAME reads the filter value. If oc get machineset ... subnet.filters[0].values[0] returns nothing, your cluster pins an explicit subnet ID instead - edit the template’s subnet block to use id: <subnet-id>.
Wait for the GPU node to be Ready:
The default instance type is g6.2xlarge (1x L4, 24 GB VRAM) - enough for Gemma 2 9B FP8, Granite tiny, and gpt-oss-20b (quantized). Edit the template to use g6e.2xlarge (1x L40S, 48 GB VRAM) for more VRAM headroom (longer context, larger models).
Do not use g5 instances (A10G GPUs) - vLLM FP8 requires compute capability >= 80 (Ampere or newer). A10G GPUs are not supported. Use g6 (L4) or g6e (L40S) instances instead.
GPU driver compilation on disconnected
The NVIDIA GPU operator compiles the NVIDIA kernel module at runtime, against the exact kernel running on the GPU node. On OpenShift it does this one of two ways, and which one you get decides whether a disconnected cluster needs anything extra:
- With the Driver Toolkit (DTK) - the driver pod gets a second container built from the Driver Toolkit image, which ships in the OpenShift release payload and is therefore already mirrored. That image contains the matching kernel sources at
/usr/src/kernels/<kernel-version>, so the build downloads nothing. The operator symlinksdnfto/usr/bin/trueinside the pod, which makes thednf install kernel-*calls in the build script inert. - Without DTK - the driver container builds alone and its
dnfis real. It is UBI-based, and the standard UBI repos do not ship kernel packages, so the build script enablesrhocp-<ocp-version>-for-rhel-9-x86_64-rpmsandrhel-9-for-x86_64-baseos-eus-rpmsand installskernel-headers,kernel-develandkernel(with vmlinuz) from them. Both are entitled Red Hat CDN repos and are unreachable from a disconnected cluster. This is the only case that needs a local repo.
Both paths run the same build script and ask for the same packages. The only thing that decides between them is whether the operator can pair the driver with a DTK image whose kernel matches the node. Check that first - on a healthy disconnected cluster it matches and there is nothing to do.
Step 1: Confirm the node and DTK kernels match
The two kernel versions must be identical. If no GPU node exists yet, read the kernel from any worker instead - a GPU MachineSet cloned from the worker set boots the same RHCOS.
Nodes lag the release payload while a MachineConfig rollout is in progress, which breaks the match. Confirm oc get mcp shows every pool UPDATED=True, not paused and not degraded, before trusting the comparison - and check after any IDMS/ITMS reboot cycle, not before.
Create the GPU MachineSet by cloning the worker MachineSet and changing only the name, the machineset labels, replicas and instanceType. Leaving providerSpec.value.ami.id untouched makes the kernel match structural instead of coincidental.
Also confirm the DTK image is actually in the mirror. oc image info does not apply the cluster’s IDMS, so check the mirror path directly - IDMS maps quay.io/openshift-release-dev/ocp-v4.0-art-dev to <mirror-registry>/openshift/release:
If the kernels match and the DTK image is present, go to Step 2 - no local repo is required. If they do not match, fix the drift (converge the MachineConfigPool, or rebuild the GPU MachineSet from the current worker AMI). Do not jump to the fallback: it extracts from the DTK image, so a mismatched DTK yields the wrong kernel-devel and the module still will not load.
Step 2: Confirm the driver built
A healthy DTK build shows nvidia-driver-ctr and openshift-driver-toolkit-ctr, and the DaemonSet is named for the RHCOS version (for example nvidia-driver-daemonset-9.6.20260715-0). At this point driver.repoConfig.configMapName in the ClusterPolicy should still be empty - that is expected and correct.
If the driver pod never appears at all, the GPU operator has no labels to match on. Check that NFD is healthy (oc get pods -n openshift-nfd) and that the node carries feature.node.kubernetes.io/pci-10de.present=true. A broken NFD looks exactly like a driver problem but is not one.
Fallback: serve kernel and CUDA RPMs over HTTP
Only needed when Step 2 shows a single-container driver pod - the operator did not pair with DTK despite a matching image being available. This happens on older GPU operator versions where use_ocp_driver_toolkit was unset or false (the field no longer exists in v26.x, where DTK handling is internal), or when the operator cannot resolve a DTK image for that RHCOS version.
The approach is to take the kernel content out of the DTK image, repackage it as RPMs, add the CUDA development packages, and serve them to the driver container over HTTP.
Extract kernel packages from DTK
The obvious shortcut - run dnf download kernel-devel-${KERNEL_VERSION} inside the DTK container and get genuine RPMs - does not work. The DTK image has only the UBI repos configured (ubi-9-baseos, ubi-9-appstream, ubi-9-codeready-builder) and carries no entitlement certificates, and UBI does not ship kernel packages. Downloading on the bastion instead needs a host entitled for the rhocp-* and *-eus-rpms repos, which a disconnected lab bastion generally is not. That leaves the files already installed inside the DTK image as the only source of kernel content at the node’s exact version - hence extraction.
If you do have an entitled RHEL host that can reach the CDN, download the real kernel-devel, kernel-headers and kernel RPMs at the node’s exact NVR and skip the rpmbuild step. Genuine RPMs are more reliable than hand-rolled ones because the NVRs and file layout are correct by construction.
On a host that can pull from the mirror registry:
Build RPMs and create a local repo
Download CUDA development packages
The NVIDIA driver container also needs CUDA development packages (cuda-devel, cuda-nvcc, cuda-cudart-devel) to compile. On a connected cluster the driver pod downloads these from developer.download.nvidia.com. On a fully air-gapped cluster that is unreachable, so the CUDA RPMs must be included in the same local repo.
This applies to the fallback path only. A DTK build resolves everything locally and runs nvidia-installer with --no-kernel-modules, so it never reaches developer.download.nvidia.com - one more reason to confirm Step 1 before doing any of this.
On a connected host with access to the NVIDIA CUDA repo:
The CUDA version must match what the GPU operator expects. Check the driver container image tag or the CUDA_VERSION env var in the ClusterPolicy to find the right version.
Generate the repo metadata:
Serve the repo and configure the GPU operator
Replace <bastion-ip> with the IP of the host serving the repo. The GPU driver pod must be able to reach this host on port 8088.
The HTTP repo must stay running for the lifetime of the GPU nodes. The NVIDIA driver pod runs dnf install every time it starts - on node reboots, MachineSet scale-ups, operator upgrades, or ClusterPolicy changes. If the repo is gone, driver compilation fails and the GPU stays unusable. For production use, serve the repo from a persistent service (httpd container, nginx pod, or a proper artifact server) instead of a background python3 process. We opened RHOAIENG-82815 to track finding a better long-term solution for this.
Verify the driver
Troubleshooting
WASM shim: “RBAC: access denied”
Symptom: All MaaS API requests return “RBAC: access denied”. The gateway pod logs show:
Cause: The Kuadrant WASM shim is fetched at runtime by the Envoy gateway pod via the OCI protocol. This fetch bypasses CRI-O and does not respect IDMS/ITMS/ICSP. On a disconnected cluster, the public registry is unreachable, the fetch fails, and Kuadrant falls back to a deny-all RBAC filter.
Fix: Apply Step 6 of the Mirroring Workflow to patch the RHCL subscription with RELATED_IMAGE_WASMSHIM pointing to the mirror registry. Then restart the gateway pod.
TLS variant: If you see tls: failed to verify certificate: x509: certificate signed by unknown authority instead of no such host, the WASM shim is reachable but the mirror registry’s CA is not trusted by the gateway pod. Ensure the mirror CA is included in:
- The cluster proxy trusted CA bundle:
oc get proxy/cluster -o jsonpath='{.spec.trustedCA.name}' - The
additionalTrustedCAinimage.config.openshift.io/cluster
Istiod / gateway pod ImagePullBackOff (OpenShift >= 4.20.32)
Symptom: After creating the MaaS gateway, the istiod deployment or gateway proxy pod in openshift-ingress shows ImagePullBackOff or ErrImagePull with errors referencing registry.redhat.io/openshift-service-mesh/istio-pilot-rhel9 or proxyv2-rhel9.
Cause: On OpenShift >= 4.20.32, the openshift-ingress operator embeds the Istio sail library and pulls istiod/proxyv2 images directly from registry.redhat.io. These images are not in the OCP release payload and not in any operator catalog. Without explicit mirroring, the disconnected cluster cannot pull them.
Fix: Mirror the istiod and proxyv2 images as described in istiod-images. Discover the correct digests from a connected reference cluster, add them to imageset-config-maas.yaml, re-run oc-mirror, and apply the updated IDMS.
After the IDMS is applied and nodes reboot, delete the failed pods so they retry with the new mirror configuration:
Certificates
In a disconnected environment, the mirror registry uses a self-signed CA. The cluster needs to trust this CA for image pulls AND for workloads running inside RHOAI (workbenches, model servers, pipelines).
If RHOAI was deployed using the standard disconnected procedure:
- The mirror CA is already in the cluster’s image.config (
additionalTrustedCA) - The DSCInitialization
trustedCABundleis set toManagedwith the CA incustomCABundle - The
odh-trusted-ca-bundleConfigMap is propagated to all RHOAI-managed namespaces
Verify:
If any of these are missing, refer to the RHOAI disconnected installation guide, Chapter 8 (Working with certificates).
MaaS Gateway connectivity (AWS)
On AWS, the MaaS gateway creates a LoadBalancer service that defaults to an external NLB with public IPs. In a disconnected VPC, these public IPs are unreachable - both from the high-side host and from pods inside the cluster (the RHOAI dashboard’s maas-ui sidecar fails with EOF errors).
When you run setup-maas.sh with DISCONNECTED=true on AWS, the script automatically patches the Gateway to use an internal NLB:
After the internal NLB is provisioned (1-2 minutes), maas.<cluster-domain> resolves to private IPs reachable from inside the VPC.
If you already deployed MaaS without DISCONNECTED=true, you can apply the patch manually and delete the service. The gateway controller recreates it automatically.
The setup-maas.sh and verify.sh scripts also have a NodePort fallback - if the MaaS gateway URL is unreachable, they discover the NodePort and test via --resolve. You can test manually:
Next steps
Once the MaaS operators are available and (optionally) a GPU node is ready, proceed to Phase 1: Prerequisites and run the guide normally. Use the DISCONNECTED=true flag with setup-maas.sh to automatically skip Phase 8 (External Models) and use the disconnected simulator variant: