Oracle
This guide covers deploying NIM LLM on Oracle Cloud Infrastructure (OCI) using OKE (Oracle Kubernetes Engine), a managed Kubernetes service for running containerized workloads on OCI.
OKE Deployment
Create an OKE cluster with GPU-capable worker nodes and prepare the OCI environment for NIM LLM workloads. This section covers prerequisites, cluster creation, and initial setup.
Prerequisites
Install the following tools before proceeding:
You also need an NGC API key with access to NIM LLM container images and Helm charts.
Your OCI tenancy must have GPU quota available in the target region. Check Availability by Region and ensure the compartment has a configured VCN, subnets, internet gateway, route table, and security lists.
If you use a non-default OCI CLI profile, pass --profile ${PROFILE_NAME} or set --auth instance_principal on all oci commands. Alternatively, export OCI_CLI_PROFILE=${PROFILE_NAME}.
Create an OKE Cluster through OCI
Set environment variables used throughout this guide:
Create an OKE cluster with GPU-capable worker nodes. Refer to the following Oracle documentation for detailed instructions:
- Creating a Cluster for step-by-step cluster creation using the OCI Console or CLI.
- Running Applications on GPU-based Nodes for configuring GPU node pools with the appropriate shapes and images.
Set the boot volume size to at least 200 GB during node pool creation to avoid disk pressure when pulling large NIM container images. For production workloads, use an Enhanced cluster (includes a financially-backed SLA).
After the cluster is created, configure kubectl access by following the Setting Up Cluster Access guide. Verify connectivity by running:
Expand the Boot Volume
OKE worker nodes do not automatically use the full allocated boot volume, which can cause disk pressure when pulling large NIM container images. To expand the root filesystem, refer to Oracle’s documentation:
- Extending the Root Partition of Worker Nodes for manual and automated approaches to expanding the root partition.
- Using Custom Cloud-init Initialization Scripts for automating the expansion at node provisioning time.
Install the NVIDIA GPU Operator
The NVIDIA GPU Operator manages GPU drivers and device plugins on OKE nodes.
The GPU Operator supports Ubuntu and RHEL/CoreOS-based node images. Verify your OKE node pool OS image is compatible before installing.
Set driver.enabled=false when GPU drivers are already managed by OCI (pre-installed on bare metal shapes). For VM shapes without pre-installed drivers, omit this flag or set it to true.
Verify the GPU Operator is running:
For more information, refer to the NVIDIA GPU Operator documentation.
Create Kubernetes Secrets
For gated Hugging Face models, create an additional secret:
Create a Persistent Volume Claim
NIM requires persistent storage to cache downloaded model files across pod restarts. Create a PVC before you deploy:
OCI Block Volume is used as the default storage class on OKE. Adjust the storage size to fit your model. For more information, refer to Provisioning PVCs on the Block Volume Service. For multi-node deployments that require ReadWriteMany access, refer to Provisioning PVCs on the File Storage Service.
Deploy NIM LLM with Helm
-
Pull the Helm chart from NGC:
-
Optional: View the default chart values to understand available configuration options:
For help choosing the right model configuration for your
values.yaml, refer to Model Profiles and Selection. -
Deploy using a custom values file:
Example
custom-values.yamlfor OKE:
Verify the Deployment
-
Get the service endpoint:
-
Check the health endpoint (set
NIM_EXTERNAL_IPfrom the serviceEXTERNAL-IP): -
Send an inference request:
Teardown
To remove all resources created by this guide:
Deleting the cluster does not automatically remove associated OCI Block Volumes or Load Balancers. Delete these manually from the OCI Console to avoid ongoing charges.
References
Refer to the Oracle Kubernetes Engine (OKE) documentation for more information.