Deploy on OpenShift
How to prepare a customer-owned OpenShift cluster with Red Hat OpenShift AI, install every prerequisite from the OperatorHub (Software Catalog) marketplace, and then run the installer on top of it.
On OpenShift the installer does not provision cluster-wide services. You install the operators from the marketplace and create their cluster-level instances. The installer then checks that everything is in place and deploys only application-scoped resources into its own namespaces.
Warning
Preview: OpenShift support is not yet complete. This guide describes the target flow. Several installer behaviours it relies on are planned, not yet implemented. They are marked (planned) below and summarised in Known gaps. Today the installer detects the platform and checks the prerequisites; the components start using the result in follow-up changes.
Until the OpenShift-safe teardown lands, never run ./es_auto_installer.sh teardown infrastructure or teardown platform against an OpenShift cluster. The current teardown roles delete CRDs by API group (for example all gateway.networking.k8s.io, monitoring.coreos.com, and *kserve* CRDs). On OpenShift those CRDs are owned by the cluster and by OpenShift AI.
Who owns what
| Owner | Installs | Examples |
|---|---|---|
| Cluster admin (you), from the marketplace | Operators, plus the cluster-scoped singleton each one needs | LVMS + LVMCluster, cert-manager, Service Mesh 3 + Istio/IstioCNI/ZTunnel, CloudNativePG, Red Hat build of Keycloak, NFD + NodeFeatureDiscovery, LWS, Custom Metrics Autoscaler + KedaController, OpenShift AI + DataScienceCluster, Loki, Logging, Tempo, OpenTelemetry and Grafana operators, user-workload monitoring |
Installer (es_auto_installer.sh) | Resources scoped to the application, in namespaces it creates and labels | CNPG Cluster, Keycloak instance and realm, ServiceMonitor/PodMonitor, LokiStack, ClusterLogForwarder, TempoMonolithic, OpenTelemetryCollector, Grafana, LiteLLM, Langfuse, inference models, eRAG applications |
The rule: the installer never installs, upgrades, or deletes an operator, a CRD, or a cluster singleton that it did not create, and never changes the cluster's configuration (for example cluster-monitoring-config). Anything the installer creates carries an ownership label, and teardown removes only labelled objects (planned).
Validated environment
Tested on 2026-10-16 with OpenShift Container Platform 4.22.17 on a single node (RHCOS, CRI-O), with the operator versions in Prerequisites. Multi-node clusters are expected to work if they have a ReadWriteMany StorageClass (ODF CephFS or Trident) and storage_custom_rwx: true (step 1). They have not been validated yet.
Prerequisites
Install each operator from the Software Catalog by following the Red Hat guide linked in the table. For the generic steps (Namespace, OperatorGroup, Subscription, approving the InstallPlan), see Installing Operators in your namespace. The steps below cover only what this stack needs beyond those guides.
To stay on the tested versions, subscribe to the channel in the table with installPlanApproval: Manual, so that OLM upgrades an operator only when you approve it. Other channels have not been tested. Tested is the installed CSV. Catalog default is what the OpenShift 4.22 catalog offered on the test date, when it differs.
| # | Component | Package (catalog) | Channel → tested | Catalog default | Red Hat guide | Required |
|---|---|---|---|---|---|---|
| 1 | Default StorageClass | lvms-operator (redhat-operators), or ODF / Trident | stable-4.22 → 4.22.0 | LVM Storage | Yes | |
| 2 | cert-manager | openshift-cert-manager-operator (redhat-operators) | stable-v1 → 1.20.1 | cert-manager Operator | Yes | |
| 3 | Service Mesh 3 (ambient) | servicemeshoperator3 (redhat-operators) | stable → 3.4.3 | Ambient mode | Yes | |
| 4 | Gateway API | built in (Ingress Operator) | — | Gateway API | Yes (nothing to install) | |
| 5 | CloudNativePG | cloudnative-pg (certified-operators) | stable-v1 → 1.30.1 | CloudNativePG (certified, not a Red Hat product) | Yes | |
| 6 | Red Hat build of Keycloak | rhbk-operator (redhat-operators) | stable-v26.6 → 26.6.7-opr.1 | RHBK Operator installation | When keycloak_enabled: true (the default) | |
| 7 | Custom Metrics Autoscaler | openshift-custom-metrics-autoscaler-operator (redhat-operators) | stable → 2.19.0-4 | Custom Metrics Autoscaler | When keda_enabled: true (default false) | |
| 8 | Node Feature Discovery | nfd (redhat-operators) | stable → 4.22.0 | NFD Operator | Yes | |
| 9 | LeaderWorkerSet | leader-worker-set (redhat-operators) | stable-v1.0 → 1.0.1 | LeaderWorkerSet Operator | Yes (llm-d serving) | |
| 10 | Red Hat Connectivity Link | rhcl-operator (redhat-operators) | stable → 1.4.3 | Install Connectivity Link | Yes (OpenShift AI LLMInferenceService) | |
| 11 | OpenShift AI | rhods-operator (redhat-operators) | stable-3.3 → 3.3.4 | stable-3.x → 3.5.1 (not tested) | Installing OpenShift AI | Yes |
| 12 | User-workload monitoring | built in (Cluster Monitoring Operator) | — | Configuring user workload monitoring | When observability_enabled | |
| 13 | Loki Operator | loki-operator (redhat-operators) | stable-6.6 → 6.6.1 | OpenShift Logging 6.6 | When observability_enabled | |
| 14 | Red Hat OpenShift Logging | cluster-logging (redhat-operators) | stable-6.6 → 6.6.1 | OpenShift Logging 6.6 | When observability_enabled | |
| 15 | Tempo Operator | tempo-product (redhat-operators) | stable → 0.22.0-3 | Distributed tracing platform | When observability_enabled | |
| 16 | Red Hat build of OpenTelemetry | opentelemetry-product (redhat-operators) | stable → 0.158.0 | Red Hat build of OpenTelemetry | When observability_enabled | |
| 17 | Grafana Operator | grafana-operator (community-operators) | v5 → 5.25.0 | Grafana Operator (community, not a Red Hat product) | When observability_enabled |
Step-by-step
Each step lists only what the stack needs beyond the linked guide. The order does not matter, except that the DataScienceCluster (step 11) needs LeaderWorkerSet and the Kuadrant instance (steps 9 and 10) first. Everything must be in place before you run the installer; its prerequisite check stops with the list of what is not.
1. Storage: default StorageClass
The installer needs a default StorageClass. It never creates, modifies, or demotes StorageClasses on OpenShift. LVM Storage (tested) is ReadWriteOnce only, which is fine on a single node. For multi-node clusters use ODF CephFS or Trident; see NetApp ONTAP and Trident.
The installer cannot tell from a class whether it is ReadWriteMany, so it assumes ReadWriteOnce and stops on a cluster with more than one node. On a multi-node cluster with a ReadWriteMany default class, set storage_custom_rwx: true in global_config.yaml.
oc get storageclass # one marked (default)
OpenShift already runs a CSI snapshot controller. Do not install another one.
2. cert-manager
Nothing beyond the guide. The installer creates only namespaced Issuer/Certificate objects and an application ClusterIssuer named with its own prefix (planned).
3. Service Mesh 3 (ambient mode)
Create the Istio, IstioCNI and ZTunnel objects for ambient mode as the guide describes, in istio-system, istio-cni and ztunnel.
oc get istio,istiocni,ztunnel # all READY / Healthy
OpenShift already runs its own istiod (openshift-gateway-istiod in openshift-ingress) for Gateway API. It is separate from the istio-system control plane. Leave it alone.
4. Gateway API
Built into OpenShift 4.19 and later; the Ingress Operator owns the CRDs. Nothing to install, and do not install the upstream Gateway API CRDs on top.
5. CloudNativePG
Install cloudnative-pg from certified-operators into openshift-operators (all namespaces). It serves the same postgresql.cnpg.io/v1 API the installer uses. The installer creates only its own Cluster in the postgresql namespace.
6. Red Hat build of Keycloak
The operator watches only its own namespace, so install it into keycloak, the namespace where the installer creates the Keycloak instance. Do not create a Keycloak CR: the installer creates the instance, its database, and the realm. Both auth_type modes use Keycloak; preflight skips this check only with keycloak_enabled: false.
7. Custom Metrics Autoscaler
Autoscaling uses KEDA instead of the Prometheus Adapter that the installer deploys on vanilla Kubernetes; on OpenShift the custom.metrics.k8s.io API must not be taken over. With keda_enabled: true, install the operator from the marketplace into openshift-keda (all namespaces): the installer does not install KEDA on OpenShift, and preflight fails without it. The operator creates the KedaController named keda in openshift-keda; if it does not, create it as the guide describes. Its status must reach Installation Succeeded.
8. Node Feature Discovery
Create a NodeFeatureDiscovery instance with the operator's default spec. With nfd_enabled: true (the default) the platform layer's node_feature_discovery component checks that one exists and fails if not; it installs nothing, and teardown leaves the operator and its labels. The model catalog's require_amx: true schedules models only on nodes labelled feature.node.kubernetes.io/cpu-cpuid.AMXBF16, so without NFD every model stays Pending.
9. LeaderWorkerSet
Required by OpenShift AI's llm-d serving path (LLMInferenceService). Create the LeaderWorkerSetOperator named cluster as the guide describes.
10. Red Hat Connectivity Link
OLM installs its dependencies, authorino-operator, dns-operator and limitador-operator, into the same namespace (kuadrant-system in the tested setup); nothing to install for them.
Create the Kuadrant instance before the DataScienceCluster. Without it the DataScienceCluster reports KserveLLMInferenceServiceDependencies=False, and LLMInferenceService, which model-manager uses for every model, cannot be used.
oc get kuadrant -A # Ready: Kuadrant is ready
11. OpenShift AI and the DataScienceCluster
Installing the operator is not enough: it creates no DataScienceCluster, so no component, including KServe, runs yet. Create one with KServe managed. The other components are up to you; the stack does not need them. Tested with:
apiVersion: datasciencecluster.opendatahub.io/v2
kind: DataScienceCluster
metadata:
name: default-dsc
spec:
components:
kserve:
managementState: Managed
rawDeploymentServiceConfig: Headless
dashboard: { managementState: Managed }
# every other component: Removed
oc get dsc default-dsc -o jsonpath='{.status.phase}{"\n"}' # Ready
oc get dsc default-dsc -o jsonpath='{.status.conditions[?(@.type=="KserveLLMInferenceServiceDependencies")].status}{"\n"}' # True (needs step 10)
OpenShift AI owns the KServe CRDs and controller. On OpenShift the installer never deploys upstream KServe: the kserve component only checks that the DataScienceCluster has KServe Managed and ready, then adds the inference Gateway. Its teardown does nothing (planned).
12. User-workload monitoring
OpenShift's own monitoring (Prometheus, Alertmanager, Thanos Querier) covers only metrics. Logs, traces and Grafana need the five operators of steps 13–17 from the marketplace. With observability_enabled: false none of steps 12–17 is needed.
Metrics come from the cluster's own monitoring: the installer creates only ServiceMonitors, and Grafana reads them through Thanos Querier. Switch on user-workload monitoring and keep its data for 30 days, as on Kubernetes (observability_prometheus_retention):
# openshift-monitoring/cluster-monitoring-config, data.config.yaml
enableUserWorkload: true
# openshift-user-workload-monitoring/user-workload-monitoring-config, data.config.yaml
prometheus:
retention: 30d
volumeClaimTemplate:
spec:
resources:
requests:
storage: 50Gi
oc get pods -n openshift-user-workload-monitoring # prometheus-user-workload-* Running
Without enableUserWorkload: true the observability component stops with a message.
13–17. Logs, traces and Grafana
Install the Loki, Logging, Tempo, OpenTelemetry and Grafana operators in all namespaces, each in its own namespace as the guides describe:
| Operator | Package | Namespace |
|---|---|---|
| Loki Operator | loki-operator | openshift-operators-redhat |
| Red Hat OpenShift Logging | cluster-logging | openshift-logging |
| Tempo Operator | tempo-product | openshift-tempo-operator |
| Red Hat build of OpenTelemetry | opentelemetry-product | openshift-opentelemetry-operator |
| Grafana Operator | grafana-operator (community-operators) | openshift-operators |
Do not create a LokiStack, ClusterLogForwarder, TempoMonolithic, OpenTelemetryCollector or Grafana: the installer creates its own instances in monitoring, and leaves any the cluster already has alone. The Logging console plugin (the Cluster Observability Operator's UIPlugin) is not needed.
oc get csv -A | grep -E 'loki|cluster-logging|tempo|opentelemetry|grafana' # all Succeeded
Platform detection
Preflight detects the platform before it resolves the components to install. Components that OpenShift does not need (istio, metallb) are skipped there whatever global_config.yaml says. The installer never stamps Pod Security labels on OpenShift, whatever enforce_pss says: the platform syncs them from the SCCs, and the keycloak namespace is the admin's. One default in configs/defaults/global_config.yaml is for Kubernetes. Set it in env/<env>/global_config.yaml of an OpenShift env:
istio_enabled: false # true makes roles label their namespaces for ambient mode, which enrolls them in Service Mesh 3
Only a cluster you bring (existing_kubernetes set) is probed. A cluster the installer builds with Kubespray is upstream Kubernetes. Preflight stops if the cluster in existing_kubernetes cannot be reached.
The installer does not install OpenShift: set existing_kubernetes to the cluster's kubeconfig, or preflight stops. As on any BYO cluster, kubernetes leaves the cluster alone. storage uses the cluster's default StorageClass (step 1) or the class in storage_custom_storageclass, whose CSI driver comes from the marketplace.
A cluster is OpenShift when it serves config.openshift.io/v1 and has the ClusterVersion object version. The API group alone is not enough, because OKD and MicroShift serve parts of it as well.
| Fact | Value |
|---|---|
cluster_distribution | openshift or kubernetes |
cluster_distribution_version | the OpenShift version (ClusterVersion status.desired.version), or '' |
cluster_kubernetes_version | for example v1.35.8, or '' when the cluster was not probed |
cluster_kubernetes_minor | the minor version as an integer ("34+" becomes 34), or 0 |
cluster_apis | the served API group/versions, or [] |
cluster_default_storageclass | the StorageClass marked storageclass.kubernetes.io/is-default-class, or '' |
Preflight prints the result, for example:
Platform: openshift 4.22.17 (Kubernetes v1.35.8, 133 API group/versions)
To skip detection, set cluster_distribution in global_config.yaml to openshift or kubernetes; preflight stops on any other value. cluster_default_storageclass is still read; the other facts fall back to the empty values above. Each role's dispatcher picks its OpenShift task files and values by cluster_distribution, and components.yaml gates components on it; Installer configuration lists what changes.
Installer configuration
Create an environment and point it at the cluster. Use a kubeconfig whose context has cluster-admin.
./es_auto_installer.sh init platform --env ocp # init inference / init erag for the layers above
There is no OpenShift-specific configuration: the same global_config.yaml works on Kubernetes and OpenShift. In env/ocp/global_config.yaml, set only what describes this cluster:
existing_kubernetes: "/home/<user>/.kube/config" # absolute path; skips all Kubespray phases
base_domain_name: "<apps domain>" # e.g. erag.apps.<cluster>.<domain>
# http_proxy / https_proxy / no_proxy if needed; no_proxy must cover the API server
auth_provider: keycloak # needs step 6; litellm needs no Keycloak
Caution
Set existing_kubernetes before you run any install command. Without it the installer does not use your oc login. It treats the env as a cluster to build, and runs Kubespray against the env's inventory, which is localhost by default. That installs Kubernetes on the machine you run the installer from, and the platform layer goes into that new cluster instead of OpenShift. Check it with:
yq '.existing_kubernetes' env/ocp/global_config.yaml # must print your kubeconfig path, not null
Pass --env ocp to every command as well. Without --env the installer uses env/local, with that env's settings and kubeconfig.
What changes on OpenShift without any setting:
| Area | Kubernetes | OpenShift |
|---|---|---|
istio, metallb | installed | skipped: Service Mesh 3 and the router provide them |
seaweedfs | installed with UID/GID 1000 | installed without fixed UIDs, so restricted-v2 assigns them |
observability | kube-prometheus-stack, Loki, Tempo, OpenTelemetry Collector and Prometheus Adapter from Helm | checks the operators (steps 13–17) and user-workload monitoring (step 12), then creates their instances in monitoring; see Observability on OpenShift |
Storage (storage_backend: local-path) | local-path provisioner | the cluster's default StorageClass (step 1), as custom, assumed RWO. Set storage_custom_rwx: true for an RWX class (ODF CephFS, Trident) |
cert_manager | installed from Helm | checks that the cert-manager Operator runs (step 2); teardown does nothing |
postgresql | CNPG operator from Helm, then the Cluster | checks the marketplace CNPG operator (step 5), then creates only the Cluster |
keycloak | upstream operator, then the instance | checks the Red Hat build of Keycloak operator (step 6), then creates only the instance and realm |
gateway (Envoy) | Envoy as a DaemonSet on the control plane, behind a LoadBalancer | Envoy as a Deployment behind a ClusterIP Service; the OpenShift router forwards each hostname the Gateway serves (the apex host, and each service's host as it publishes) to it through a TLS passthrough Route, so Envoy still terminates TLS. Add hosts published outside the installer with gateway_openshift_extra_route_hosts. Its namespace's service accounts get the nonroot-v2 SCC for the chart's fixed UID. Only the Envoy Gateway CRDs are applied: the Gateway API CRDs belong to the Ingress Operator, which rejects changes to them. The Ingress Operator's CRDs have no ListenerSet (OCP 4.22: v1.4.1), so services share the wildcard listener (shared attach mode) |
nri_cpu_balloons | NRI balloons | NRI balloons, with openshift.grant-scc: true; pods of OpenShift AI's LLMInferenceService land in model-balloon-tp1 by their kserve.io/component: workload label |
The defaults in configs/defaults/global_config.yaml are for Kubernetes. In env/ocp/global_config.yaml set istio_enabled: false (see Platform detection). With istio_enabled: true, istio is still skipped, but roles label their namespaces for ambient mode, so preflight warns about it. An env seeded with observability_enabled as an expression on cluster_distribution skips observability on OpenShift; set it to true.
Then:
oc whoami && oc get dsc # sanity check: right cluster, OpenShift AI ready
./es_auto_installer.sh install platform --env ocp
The inference layer (install inference) is described in the inference layer on OpenShift.
What the installer deploys on OpenShift. Every namespace it creates gets the ownership label (planned). In the platform layer it deploys:
- the CNPG
Clusterand the per-database credentials (postgresqlnamespace); - the
Keycloakinstance and realm (keycloaknamespace); - Envoy Gateway, its Gateway and the passthrough
Routes, inenvoy-gateway-system; - SeaweedFS, the object store for logs, traces and Langfuse (
monitoringnamespace); - the observability instances and Grafana (
monitoringnamespace), below.
Observability on OpenShift
The same Grafana as on Kubernetes, with the same datasource uids (prometheus, loki, tempo), so every dashboard works unchanged. Everything is in the monitoring namespace:
| Signal | Kubernetes | OpenShift |
|---|---|---|
| Metrics | kube-prometheus-stack Prometheus, 30 days | user-workload monitoring (step 12), read through Thanos Querier with the cluster-monitoring-view role |
| Logs | OpenTelemetry Collector DaemonSet → Loki on SeaweedFS, 30 days | ClusterLogForwarder platform-logs (application namespaces, OpenTelemetry labels such as k8s_container_name) → LokiStack logging-loki on SeaweedFS, 30 days (observability_loki_retention_hours) |
| Traces | OpenTelemetry Collector → Tempo on SeaweedFS | OpenTelemetryCollector opentelemetry (Service opentelemetry-collector, same endpoint) → TempoMonolithic tempo on SeaweedFS, 30 days |
| Grafana | kube-prometheus-stack Grafana | Grafana grafana-platform from the Grafana Operator, published on the gateway like on Kubernetes (grafana.<base domain>, or <base domain>/grafana with routing_mode: path) |
| Dashboards | ConfigMaps labelled grafana_dashboard: "1" | the same ConfigMaps, plus OpenShift's own Kubernetes, node and networking dashboards from openshift-config-managed, in the OpenShift folder |
The admin password is in the grafana-admin-credentials Secret, as on Kubernetes. Settings: observability_openshift_* in roles/observability/defaults/main.yaml (LokiStack size, StorageClass, namespaces to collect logs from).
Prerequisite check
On OpenShift, install and validate check the Prerequisites before the first component runs. They check only what the plan needs:
- The platform layer needs the default StorageClass, cert-manager, Service Mesh 3, Gateway API, CloudNativePG, NFD, and the Red Hat build of Keycloak unless
keycloak_enabled: false. - With
observability_enabled: true(the default), the platform layer also needs user-workload monitoring and the Loki, Logging, Tempo, OpenTelemetry and Grafana operators. - The inference layer adds LeaderWorkerSet, Connectivity Link and OpenShift AI.
| What | Passes when |
|---|---|
| OpenShift | ClusterVersion is at least the tested 4.22 |
| Operator | its Subscription (or OLM v1 ClusterExtension) has an installed CSV that is Succeeded, at least the tested version, and in the required namespace (keycloak for RHBK) |
| APIs | the cluster serves the operator's group/versions, for example gateway.networking.k8s.io/v1 |
| Instances | Istio/IstioCNI/ZTunnel default Ready, a NodeFeatureDiscovery Available, LeaderWorkerSetOperator cluster Available, a Kuadrant Ready, a DataScienceCluster with phase Ready, KServe Managed and KserveLLMInferenceServiceDependencies=True, and the user-workload Prometheus Available (it exists only with enableUserWorkload: true) |
| Storage | exactly one default StorageClass, or the storage_custom_storageclass exists when storage_backend: custom |
Preflight prints one line per requirement, then stops with every requirement that failed, the reason, and the step to follow:
✗ cert-manager: TOO OLD
cert-manager-operator.v1.20.0 1.20.0 is older than the tested 1.20.1
an upgrade to cert-manager-operator.v1.20.1 is waiting: InstallPlan cert-manager-operator/install-kvghn is not approved; approve it: oc patch installplan install-kvghn -n cert-manager-operator --type merge -p '{"spec":{"approved":true}}'
see docs/deploy/openshift.md#2-cert-manager
With installPlanApproval: Manual, OLM waits for you to approve the first install and every upgrade. When a Subscription waits on an InstallPlan, the message names the plan and the command that approves it. The installer never approves it for you.
A version newer than the tested one and anything the installer identity is not allowed to read are warnings; the run continues. Set openshift_prereq_strict: true to fail on untested newer versions too.
The check only reads. It never installs or changes an operator. There is one exception: if the identity cannot list StorageClasses, preflight creates a 1Mi PVC with no storageClassName in a temporary ai-solutions-preflight namespace.
- The cluster fills in the default class, which shows that a default exists.
BoundorWaitForFirstConsumershows that the class accepts claims.ProvisioningFailedfails the check.
The namespace is deleted again whatever the result. Set openshift_prereq_storage_probe: false to skip the probe; the storage row is then a warning.
The requirements live in configs/openshift_prerequisites.yaml, one entry per row of the table above. Set openshift_prereq_check: false in global_config.yaml to skip the check (not recommended).
Known gaps
The installer does not support all of the flow above yet. The blocking items stop a successful install today.
| Area | Today | Needed | Blocking |
|---|---|---|---|
| Teardown safety | Teardown roles delete CRDs by API group or regex (kserve, envoy_gateway, observability, cert_manager, istio, metallb, keycloak) and whole namespaces | An ownership label on everything the installer creates; teardown deletes only labelled objects and never CRDs it did not create | Yes: do not run teardown |
| SCC | Charts set fixed runAsUser/fsGroup; namespaces get only Pod Security labels, which do not grant an SCC on OpenShift | Leave UID/GID unset on OpenShift so restricted-v2 assigns them; grant a dedicated SCC only where a component really needs one | Yes |
| Autoscaling | app_hpa (Prometheus Adapter) and the eRAG HPAs are skipped on OpenShift | HPAs on the Custom Metrics Autoscaler (KEDA) and user-workload monitoring | No |
| CPU pinning (NRI balloons) and tensor parallelism | OpenShift AI cannot annotate the pods of an LLMInferenceService, so every model pod (kserve.io/component=workload) lands in the model-balloon-tp1 balloon and gets the CPUs of one NUMA node. Only TP=1 models are supported | Pick the balloon by the model's TP size | No (TP>1 models run with too few CPUs) |
| NRI plugin sync | If a CRI-O sync with the NRI plugin fails (failed to synchronize plugin in the CRI-O journal), the plugin gets no container events and new pods run unpinned. The installer restarts the plugin after it applies the node policy, which is when this happens; after a policy change of your own, restart it by hand: oc delete pod -n kube-system -l app.kubernetes.io/name=nri-resource-policy-balloons | Detect a failed sync and restart the plugin | No |