ROSA with Nvidia GPU Workloads
This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.
ROSA guide to running Nvidia GPU workloads.
Prerequisites
- ROSA Cluster (4.14+)
- rosa cli #logged-in
- oc cli #logged-in-cluster-admin
- jq
If you need to install a ROSA cluster, please read our ROSA Quickstart Guide , or better yet Use Terraform to create an HCP Cluster .
Enter the oc login command, username, and password from the output of the previous command:
Example login:
Linux:
MacOS
Helm Prerequisites
If you do not want to use Helm you can follow the steps in the Manual section.
Add the MOBB chart repository to your Helm
Update your repositories
GPU Quota
View the list of supported GPU instance types in ROSA
Select a GPU instance type
The guide uses g5.xlarge as an example. Please be mindful of the GPU cost of the type you choose.
Login to AWS
Login to AWS Console , type “quotas” in search by, click on “Service Quotas” -> “AWS services” -> “Amazon Elastic Compute Cloud (Amazon EC2). Search for “Running On-Demand [instance-family] instances” (e.g. Running On-Demand G and VT instances).
Please remember that when you request quota that AWS is per core. As an example, to request a single g5.xlarge, you will need to request quota in groups of 4; to request a single g5.8xlarge, you will need to request quota in groups of 32.
Verify quota and request increase if necessary

GPU Machine Pool
Set environment variables
Create GPU machine pool
Verify GPU machine pool
It may take 10-15 minutes to provision a new GPU machine. If this step fails, please login to the AWS Console and ensure you didn’t run across availability issues. You can go to EC2 and search for instances by cluster name to see the instance state.
Double check that the cluster shows the node as ready
Install and Configure Nvidia GPU
This section configures the Node Feature Discovery Operator (to allow OpenShift to discover the GPU nodes) and the Nvidia GPU Operator.
Create namespaces
Use the
mobb/operatorhubchart to deploy the needed operatorsWait until the two operators are running
Note: If you see an error like
Error from server (NotFound): deployments.apps "nfd-controller-manager" not found, wait a few minutes and try again.Install the Nvidia GPU Operator chart
Wait until NFD instances are ready
Wait until Cluster Policy is ready
Note: This step may take a few minutes to complete.
Validate GPU
Verify NFD can see your GPU(s)
You should see output like:
Verify GPU Operator added node label to your GPU nodes
[Optional] Test GPU access using Nvidia SMI
You should see output that shows the GPUs available on the host such as this example screenshot. (Varies depending on GPU worker type)

Create Pod to run a GPU workload
View logs
Please note, if you get an error “Error from server (BadRequest): container “cuda-vector-add” in pod “cuda-vector-add” is waiting to start: ContainerCreating” try running “oc delete pod cuda-vector-add” and then re-run the create statement above. We’ve seen issues where if this step is ran before all of the operator consolidation is done it may just sit there.
You should see Output like the following (mary vary depending on GPU):
If successful, the pod can be deleted