Skip to main content

software catalog

Docs pulled from project reposUpdated Nov 20, 2026View on GitHub

Deploy on OpenShift

On OpenShift the inference layer does not install KServe or the AI gateways. OpenShift AI and the marketplace operators provide them. install inference checks that they are there, publishes OpenShift AI's inference Gateway behind Keycloak, and pins model pods to CPU balloons. model-manager then renders models for OpenShift AI.

Everything is driven by cluster_distribution, which the platform's preflight detects. Nothing in global_config.yaml or models.yaml changes between platforms.

Before you start

  1. Install the prerequisites: the operators, the DataScienceCluster and a default StorageClass. Follow Deploy on OpenShift in the platform repo.
  2. Install the platform layer: run ./es_auto_installer.sh install platform --env <env> (see that guide's Installer configuration).

Install the inference layer

bash
./es_auto_installer.sh init inference --env ocp     # once
./es_auto_installer.sh install inference --env ocp
ComponentOn OpenShift
kserveChecks that OpenShift AI is installed: a DataScienceCluster with KServe Managed, the KServe controllers in redhat-ods-applications, and the LLMInferenceService and InferencePool CRDs. It installs nothing. Then it sets up the inference Gateway openshift-ingress/openshift-ai-inference: it creates the Gateway if it is missing, issues it a certificate for inference.<domain> from the platform CA (gateway_tls_mode: custom copies the operator's certificate instead), publishes it through a passthrough Route on inference.<domain>, and adds a Gateway-wide Keycloak AuthPolicy (Connectivity Link) when auth_type: jwt. Teardown does nothing.
envoy_ai_gateway, agentgatewaySkipped. Models are routed by OpenShift AI's inference Gateway at /<namespace>/<model>/v1/.... There is no unified /v1 endpoint (AIGatewayRoute).
keycloak_configUnchanged, except that kcadm keeps its session in /tmp, because RHBK's HOME=/ is not writable for the UID that the SCC assigns.
nri_cpu_balloons (platform repo)Grants the SCC, and selects OpenShift AI model pods into model-balloon-tp1 by their kserve.io/component=workload label. v1alpha1 cannot annotate pods (see below).
llm_servicesWaits for the KServe controller in redhat-ods-applications. Gives the model-store PVC ReadWriteOnce access when the StorageClass is RWO-only (storage_custom_rwx: false, e.g. LVMS). Passes MM_PLATFORM and the inference Gateway to model-manager.

Deploy a model

model-manager detects the platform on every run, before it renders anything. So the commands are the same as in Deploy a Model:

bash
cd model_manager
export KUBECONFIG=~/.kube/config
export MM_CONFIG=../env/ocp/models.yaml              # or wherever your catalog lives
export MM_GLOBAL_CONFIG=../env/ocp/global_config.yaml # for the inference hostname

./model-manager deploy qwen3-0-6b --dry-run          # look at what is rendered
./model-manager deploy qwen3-0-6b --wait

What changes on OpenShift:

KubernetesOpenShift
PlatformMM_PLATFORM=kubernetesMM_PLATFORM=openshift. Detected from the config.openshift.io ClusterVersion API, or set explicitly.
LLMInferenceService APIv1alpha2The newest version the cluster serves: OpenShift AI 3.3 serves only v1alpha1 (MM_LLMISVC_API_VERSION).
Gatewayeg-gateway plus an AIGatewayRouteopenshift-ingress/openshift-ai-inference (MM_INFERENCE_GATEWAY, MM_INFERENCE_GATEWAY_NS). MM_AIGATEWAY_ENABLED=false.
vLLM flagsContainer argsVLLM_ADDITIONAL_ARGS, because OpenShift AI's template starts vLLM itself. --served-model-name becomes spec.model.name. The probes use HTTPS (vLLM serves TLS).
Pod UIDsPinned runAsUser / runAsGroup / fsGroupDropped, because the restricted-v2 SCC assigns them from the namespace's range.
CPU balloonPod annotationThe kserve.io/component=workload label. v1alpha1 puts the policy's annotations on the LLMInferenceService itself, not on its pods.
InferencePool statusPatched by model-managerReported by the Gateway controller itself.

Check the deployment:

bash
oc get llminferenceservice -n llm-inference      # READY True, URL on openshift-ai-inference
oc exec -n llm-inference deploy/qwen3-0-6b-kserve -c main -- \
  grep -E 'Cpus_allowed_list|Mems_allowed_list' /proc/1/status   # the balloon's cpuset

Call the model

Models are served at https://inference.<domain>/<namespace>/<model>/v1/..., through the OpenShift router, and need a Keycloak token. model-manager deploy prints both commands ready to paste. The router IP comes from the cluster, and --resolve is added only when the *.apps hostnames don't resolve from your machine.

bash
# The token script reads the client secret from the cluster and finds the router
# itself (MM_GATEWAY_IP overrides it). It exports TOKEN and GATEWAY_IP, which is
# empty when the *.apps DNS is all there is: then --resolve is left out.
source model_manager/scripts/get-keycloak-token.sh

H=inference.<domain>
curl -s --noproxy '*' --cacert env/ocp/logs/ai-solutions-ca.crt \
  ${GATEWAY_IP:+--resolve "$H:443:$GATEWAY_IP"} \
  https://$H/llm-inference/qwen3-0-6b/v1/chat/completions \
  -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
  -d '{"model":"qwen3-0-6b","messages":[{"role":"user","content":"Hello /no_think"}],"max_tokens":64}'

Without the script:

bash
SECRET=$(oc get secret keycloak-client-secret -n keycloak -o jsonpath='{.data.client-secret}' | base64 -d)
TOKEN=$(curl -s --noproxy '*' --cacert env/ocp/logs/ai-solutions-ca.crt \
  --resolve "keycloak.<domain>:443:<ingress VIP>" \
  https://keycloak.<domain>/realms/inference/protocol/openid-connect/token \
  -d grant_type=client_credentials -d client_id=inference-client -d client_secret=$SECRET | jq -r .access_token)

Response codes: no token or an invalid one gives 401, and a valid one 200.

Known gaps

GapToday
OpenVINO modelsNot supported: OpenShift AI's LLMInferenceService template starts vLLM itself, so model-manager stops an OpenVINO deploy there.
TP2+ balloonsOn v1alpha1 every model pod matches by label into model-balloon-tp1, so models with more than one NUMA node per replica don't get their own balloon type.
LiteLLM, vLLM Semantic RouterNot supported: both reach the models through the Envoy AI Gateway, which OpenShift does not get. The install stops with auth_type: litellm_vkey, litellm_enabled or vllm_sr_enabled.
Unified /v1 endpointNot available, because there is no AI gateway. Clients (e.g. eRAG) need the per-model URL.
Token script fallbackWhen the router can't be reached, the port-forward fallback fails: RHBK serves plain HTTP on 8080.
NRI plugin syncThe installer restarts the plugin once it applies the node policy. After a balloon policy change of your own, restart it by hand, or new pods may run unpinned: oc delete pod -n kube-system -l app.kubernetes.io/name=nri-resource-policy-balloons.