Deploying AI workloads on Red Hat OpenShift
Deploy NVIDIA LLM NIM with Helm
Deploy a NIM LLM inference server on OpenShift using the official Helm chart. This is the simplest path for standalone inference — no NIM Operator or KServe required. Refer to the latest documentation for more options.
Add the NIM Helm repo
Create a namespace
Grant the nonroot-v2 SCC
The NIM container runs as UID 1000 (non-root). Grant nonroot-v2 so OpenShift honors the image’s declared user instead of assigning a random namespace UID.
Create secrets
If you haven’t already done so, create the NGC pull secret. Replace <YOUR_NGC_API_KEY> with your key from ngc.nvidia.com.
(Optional) Create a model cache PVC
Skip this step if you don’t want persistent model caching. Without it, the model is re-downloaded on every pod restart.
Adjust storageClassName for your cluster:
Create the PVC:
Create a values file
Deploy with Helm
Watch the pod come up (first run downloads the model — can take 10-30 min):
Test the endpoint
Port-forward and run a smoke test:
Expose externally via an OpenShift Route (optional):
Cleanup
Deploy NVIDIA NIM with the NIM Operator
The NVIDIA NIM Operator enables Kubernetes cluster administrators to operate the software components and services necessary to deploy NVIDIA NIMs and NVIDIA NeMo microservices in Kubernetes.
The Operator can manage the lifecycle of the following microservices and the models they use:
-
NVIDIA NIM models, such as:
- Reasoning LLMs
- Retrieval — embedding, reranking, and other functions
- Speech
- Biology
-
NeMo core microservices:
- NeMo Customizer
- NeMo Evaluator
- NeMo Guardrails
- NeMo platform component microservices:
- NeMo Data Store
- NeMo Entity Store
Deploying via the NIM Operator provides low-level optimizations that streamline developer workflows with:
- Model Caching: Large Language Models (LLMs) often exceed 100GB, leading to long start up times. The NIM Operator solves this by using a dedicated caching controller. It pre-downloads and stores model weights on Persistent Volumes (PVs), ensuring that when a service scales, the pods pull from local storage rather than the remote registry.
- Observability: Prometheus metrics to track NIM cache, service, and pipelines deployed to your cluster. It also provides several common Kubernetes operator metrics.
- Autoscaling: scale based on different metrics, either based on DCG metrics or NIM-specific metrics for the service handling requests to your cached models
- Dynamic Resource Allocation (DRA): The Operator communicates directly with the underlying NVIDIA GPU hardware to ensure optimal scheduling. It leverages DRA to match the specific requirements of a model (like GPU memory or compute capability) to the available hardware without manual environment variable tuning.
- Government Ready: NVIDIA NIM Operator is government ready, NVIDIA’s designation for software that meets applicable security requirements for deployment in your FedRAMP High or equivalent sovereign use case
Prerequisites
Prior to deploying the NIM Operator, ensure you have met the prerequisites then follow the installation instructions for OpenShift to create the custom resource definitions.
Deploy with the NIMService Custom Resource
The NIM Operator deploys standalone NIM resources as NIMService Custom Resource Definitions (CRD). By using the NIMService CRD, platform engineers can treat generative AI models as standard Kubernetes objects, integrating them directly into existing production DevOps workflows. Multiple NIM service resources can be deployed together with NIMPipeline.
Create a namespace
Create the NIMCache
This pulls and caches the model weights onto a PVC. Adjust storageClass, size, and nodeSelector for your cluster.
Apply nimcache.yaml. Watch until STATUS is Ready (model download can take 10-30 min):
Create the NIMService
Apply nimservice.yaml:
Test the Endpoint
Expose externally via OpenShift Route
Deploy with KServe
An alternative to NIMService, the NVIDIA NIM Operator supports NIM through KServe. This method deploys a NIM that is managed by a purpose-built Kubernetes controller designed to automate the deployment, scaling, and management of NIM microservices. While deploying with OpenShift AI (described later in this guide) also uses KServe, use this method if:
- You’re running RHOAI or ODH and want models deployed externally visible in the dashboard
- You need the full KServe feature set: canary rollouts, traffic splitting, request batching, gRPC/v2 protocol support
- You want autoscaling via KEDA or Knative (scale-to-zero on serverless deployments)
- You need a standardized
InferenceServiceAPI that works across multiple runtimes (NIM, vLLM, Triton, OpenVINO, etc.) - You want built-in token auth via Authorino / ODH model serving auth
- Your team already manages other models through KServe and wants consistency
Create a namespace
Create the PVC
Adjust storageClass, size, and nodeSelector for your cluster.
Create the ServingRuntime
Apply:
Create the InferenceService
Apply:
Test the external URL
Refer to the NIM Operator documentation for steps on deploying with the NIM Operator on Red Hat OpenShift.