Quickstart: End-to-End GPU Booking Demo
This quickstart exercise is a complete GPU booking workflow end to end. It is self contained and does not require you to have completed any of the modules so is suitable for a standalone walkthrough or demo.
You will configure a GPU profile as an administrator, deploy an unreserved workload as one user, then reserve GPUs and launch a workbench as a second user — triggering preemption and observing how Kueue manages resource contention automatically.
The follow on Modules explore the individual components in more detail.
Learning objectives
By the end of this quickstart, you’ll be able to:
-
Configure and deploy a GPU profile using the GPU Config console plugin
-
Deploy unreserved GPU workloads via Helm
-
Create a GPU reservation through the booking app
-
Launch an RHOAI workbench using a reserved Hardware Profile
-
Observe Kueue preemption when reserved workloads claim resources from unreserved ones
-
Clean up all resources
Personas in this quickstart
This walkthrough uses three user identities:
| User | Role | Actions |
|---|---|---|
|
Cluster admin |
Configures the GPU profile, discovers GPUs, sets up the environment |
|
Regular user |
Deploys an unreserved workload consuming all GPUs |
|
Regular user |
Reserves a GPU, creates an RHOAI workbench, triggers preemption of user1’s workload |
| This quickstart is using the NVIDIA GB200 NVL profile. You may use other profiles if you wish - however you will need to adjust the commands accordingly. Don’t worry if the images in this quickstart do not match exactly your GPU profile. The number of GPUs may be slightly different in the images depending on the profile you deploy and number of nodes in the cluster. Remember the GPUs are all simulated in this workshop! |
Exercise 1: Configure GPU profile (Admin)
|
Acting as: |
Deploy the NVIDIA GB200 NVL profile
-
In the OpenShift Console, navigate to GPU Config > GPU Profiles in the left navigation menu.
-
Select the NVIDIA GB200 NVL profile card.
-
Select one of the three cluster nodes in the GPU Target Node selection box.
You can select more than one node to deploy the GPU profile to. For this workshop you should only select one node as the examples are tailored to target a single GPU node only. -
Click Deploy to apply the GPU profile to the cluster.
-
Wait for the deployment to complete. The status panel will show the progress of node labeling and operator restart.
Discover GPUs
-
Navigate to GPU Booking > Administration in the console menu.
-
Click Discover GPUs to detect the newly configured GPU resources.
Exercise 2: Deploy an unreserved workload (user1)
|
Acting as:
You should see |
Deploy workload
-
Deploy a workload requesting 8 full GPUs to the unreserved cluster queue:
helm template gpu-deploy oci://quay.io/eformat/gpu-test-workloads -n user-user1 \ --set kind=Deployment \ --set name=gpu-fake-gpu \ --set replicas=1 \ --set gpuCount=8 \ --set gpuResourceType=nvidia.com/gpu \ --set reserved=false \ | oc -n user-user1 apply -f-Expected output:
deployment.apps/gpu-fake-gpu createdThis renders a Helm chart locally and pipes the resulting Deployment manifest into
oc apply. The workload requests 8 full GPUs and targets theunreservedClusterQueue — meaning it has no reservation and can be preempted later. -
Wait for the deployment to be ready:
oc -n user-user1 rollout status deployment/gpu-fake-gpu --timeout=120sExpected output:
deployment "gpu-fake-gpu" successfully rolled out
Verify GPU allocation
-
Check that the pod can see the GPUs:
oc -n user-user1 exec $(oc -n user-user1 get pod -l app=gpu-fake-gpu -o name) -- nvidia-smiYou should see 8 NVIDIA GB200 NVL GPUs listed in the
nvidia-smioutput table. Each row represents one simulated GPU with its memory usage and utilization. -
Check the Kueue resources:
oc get lq,cq,workload -AExpected output (abridged):
NAMESPACE NAME CLUSTERQUEUE PENDING ADMITTED user1 localqueue.kueue.x-k8s.io/unreserved unreserved 0 1 NAMESPACE NAME COHORT PENDING clusterqueue.kueue.x-k8s.io/unreserved unreserved 0 NAMESPACE NAME QUEUE ADMITTED AGE user1 workload.kueue.x-k8s.io/pod-gpu-fake-gpu-... unreserved True 30sThe key things to observe:
-
LocalQueue
unreservedinuser1has 1 admitted workload — this is user1’s deployment. -
ClusterQueue
unreservedbelongs to theunreservedcohort, which shares GPU resources with reserved queues. -
Workload shows
ADMITTED=True— Kueue has granted this workload access to GPU resources.
-
-
Open the GPU Booking > Bookings page in the OpenShift Console to see all 8 full GPUs consumed:
Exercise 3: Reserve a GPU and create a workbench (user2)
|
Acting as: |
Create a GPU booking
-
Navigate to GPU Booking > Bookings in the console menu.
-
Scroll down to the calendar and click on today’s date.
-
In the slot grid below the calendar, find the NVIDIA GB200 NVL Full GPU row. All 8 units show
user1consumed. -
Click Override on one of the consumed slots to create a reservation that will preempt the unreserved workload.
The slot grid now shows your reservation alongside user1’s consumed workloads:
Create an RHOAI workbench
-
Open the Red Hat OpenShift AI dashboard:
Log in as
user2with password%password%. -
Navigate to Projects and select the User user2 Project.
-
Click Create a workbench and fill in:
-
Name:
fake-gpu-workbench -
Image selection: Training | Jupyter | PyTorch | CUDA | Python
-
Hardware profile: Reserved GPU (Project-scoped)
-
-
Adjust the Resource requests and limits to request 1 GPU, 1 CPU, and 1Gi of memory.
-
Click Create workbench and wait for it to reach Ready status.
Verify Kueue state
-
Log in to the CLI as
user2:oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user2 -p %password% -
Check the Kueue resources:
oc get lq,cq,workload -AExpected output (abridged):
NAMESPACE NAME CLUSTERQUEUE PENDING ADMITTED user1 localqueue.kueue.x-k8s.io/unreserved unreserved 2 0 user2 localqueue.kueue.x-k8s.io/reserved user2 0 1 NAMESPACE NAME COHORT PENDING clusterqueue.kueue.x-k8s.io/unreserved unreserved 2 clusterqueue.kueue.x-k8s.io/user2 unreserved 0 NAMESPACE NAME QUEUE RESERVED IN ADMITTED AGE user1 workload.kueue.x-k8s.io/pod-gpu-fake-gpu-...-f17e3 unreserved 16s user1 workload.kueue.x-k8s.io/pod-gpu-fake-gpu-...-0fae4 unreserved False 13m user2 workload.kueue.x-k8s.io/statefulset-fake-gpu-workbench-.. reserved user2 True 16sThis output shows preemption in action:
-
user1’s workloads are now
ADMITTED=Falseor have no admission status. Kueue evicted them to free the GPU for user2’s reservation. Theunreservedqueue shows 2 pending workloads that are waiting for resources. -
user2’s workload shows
ADMITTED=TrueandRESERVED IN=user2. The booking app created a dedicated ClusterQueue (user2) for the reservation, and the workbench workload was admitted there with priority over the unreserved workloads. -
The
user2ClusterQueue belongs to the sameunreservedcohort — this is how Kueue’sreclaimWithinCohortpolicy allows reserved workloads to reclaim resources from unreserved ones.
-
Exercise 4: Observe preemption
When user2’s reserved workload starts, Kueue automatically evicts user1’s unreserved pod to free the GPU. You can observe this in both the CLI and the GPU Booking app.
user1: Watch pod preemption
|
Acting as:
|
-
Check the pods in user1’s namespace:
oc -n user-user1 get podsExpected output:
NAME READY STATUS RESTARTS AGE gpu-fake-gpu-54959878d8-g88dn 0/1 SchedulingGated 0 15muser1’s pod shows
SchedulingGated— Kueue has evicted it to reclaim the GPU for user2’s reservation. The pod is not terminated; it is held in a gated state and will automatically resume once the GPU becomes available again. -
Open the GPU Booking > Bookings page to see the preemption reflected in the usage overview. user2’s reservation (red) now holds 1 GPU:
user2: Delete workbench and observe recovery
|
Acting as: |
-
In RHOAI, navigate to Projects > User user2 Project > Workbenches.
-
Delete the
fake-gpu-workbenchworkbench using the kebab menu (three dots). -
Once the workbench is deleted, user2’s workload releases the GPU. user1’s pod will automatically recover and return to
Runningstatus.
user1: Pod recovers
|
Acting as: |
-
Verify user1’s pod is running again:
oc -n user-user1 get podsExpected output:
NAME READY STATUS RESTARTS AGE gpu-fake-gpu-54959878d8-4gknt 1/1 Running 0 2mOnce user2’s workbench released the GPU, Kueue automatically re-admitted user1’s workload. The pod transitions from
SchedulingGatedback toRunningwithout any manual intervention.
user2: Cancel booking
|
Acting as: |
-
Navigate to GPU Booking > Bookings and click My Bookings.
-
Click Cancel All to remove the GPU reservation, then click Confirm.
|
Acting as:
|
-
Verify that the Kueue resources for user2 are removed:
oc -n user-user2 get cq,lq,hardwareprofileExpected output:
No "reserved" resources found in user2 namespace.When a booking is canceled, the GPU Booking app automatically cleans up all Kueue resources it created: the per-user ClusterQueue (
user2), thereservedLocalQueue, and any HardwareProfiles. This ensures no stale reservation state remains on the cluster.
Exercise 5: Cleanup
user1: Delete workload
|
Acting as:
|
-
Delete the unreserved deployment:
oc -n user-user1 delete deployment gpu-fake-gpuExpected output:
deployment.apps "gpu-fake-gpu" deleted
Module summary
What you accomplished:
-
Configured the NVIDIA GB200 NVL GPU profile as a cluster administrator
-
Deployed an unreserved GPU workload consuming all available GPUs
-
Created a GPU reservation and launched an RHOAI workbench with a reserved Hardware Profile
-
Observed Kueue preemption in action — reserved workloads automatically evict unreserved ones
-
Cleaned up all resources
Key takeaways:
-
The GPU Config plugin lets administrators select and deploy GPU profiles with a single click
-
The GPU Booking app creates Kueue resources (ClusterQueues, LocalQueues, HardwareProfiles) from calendar reservations
-
Reserved workloads always take priority over unreserved ones through Kueue’s
reclaimWithinCohortpolicy -
Preemption is fully automatic — users only interact with the booking calendar and RHOAI
-
When a reservation is canceled, all associated Kueue resources are cleaned up automatically













