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

admin

Cluster admin

Configures the GPU profile, discovers GPUs, sets up the environment

user1

Regular user

Deploys an unreserved workload consuming all GPUs

user2

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: admin (cluster admin)
Log in to the OpenShift Console at https://console-openshift-console.apps.cluster.example.com with username admin and password %password%.

Deploy the NVIDIA GB200 NVL profile

  1. In the OpenShift Console, navigate to GPU Config > GPU Profiles in the left navigation menu.

  2. Select the NVIDIA GB200 NVL profile card.

  3. Select one of the three cluster nodes in the GPU Target Node selection box.

    GPU Node Picker
    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.
  4. Click Deploy to apply the GPU profile to the cluster.

GPU Config plugin showing GB200 NVL profile selected
  1. Wait for the deployment to complete. The status panel will show the progress of node labeling and operator restart.

GPU Config showing successful deployment

Discover GPUs

  1. Navigate to GPU Booking > Administration in the console menu.

  2. Click Discover GPUs to detect the newly configured GPU resources.

GPU Booking Administration after discovering GPUs

Verify empty bookings

  1. Navigate to GPU Booking > Bookings.

  2. Observe the empty topology usage overview — no workloads are consuming GPUs yet.

GPU Booking showing empty topology

Verify

✓ GB200 NVL GPU profile deployed successfully
✓ GPUs discovered in the booking administration panel
✓ Bookings page shows empty topology

Exercise 2: Deploy an unreserved workload (user1)

Acting as: user1
Log in to the OpenShift CLI:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%

You should see Login successful and the list of accessible projects.

Deploy workload

  1. 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 created

    This renders a Helm chart locally and pipes the resulting Deployment manifest into oc apply. The workload requests 8 full GPUs and targets the unreserved ClusterQueue — meaning it has no reservation and can be preempted later.

  2. Wait for the deployment to be ready:

    oc -n user-user1 rollout status deployment/gpu-fake-gpu --timeout=120s

    Expected output:

    deployment "gpu-fake-gpu" successfully rolled out

Verify GPU allocation

  1. 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-smi

    You should see 8 NVIDIA GB200 NVL GPUs listed in the nvidia-smi output table. Each row represents one simulated GPU with its memory usage and utilization.

  2. Check the Kueue resources:

    oc get lq,cq,workload -A

    Expected 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       30s

    The key things to observe:

    • LocalQueue unreserved in user1 has 1 admitted workload — this is user1’s deployment.

    • ClusterQueue unreserved belongs to the unreserved cohort, which shares GPU resources with reserved queues.

    • Workload shows ADMITTED=True — Kueue has granted this workload access to GPU resources.

  3. Open the GPU Booking > Bookings page in the OpenShift Console to see all 8 full GPUs consumed:

GPU Booking showing 8 GPUs consumed by user1

Verify

✓ Deployment gpu-fake-gpu is running in user1 namespace
✓ nvidia-smi shows 8 GPUs allocated
✓ GPU Booking shows 8/8 full GPUs consumed
✓ RHOAI dashboard is accessible

Exercise 3: Reserve a GPU and create a workbench (user2)

Acting as: user2
Log in to the OpenShift Console at https://console-openshift-console.apps.cluster.example.com with username user2 and password %password%.

Create a GPU booking

  1. Navigate to GPU Booking > Bookings in the console menu.

  2. Scroll down to the calendar and click on today’s date.

  3. In the slot grid below the calendar, find the NVIDIA GB200 NVL Full GPU row. All 8 units show user1 consumed.

  4. Click Override on one of the consumed slots to create a reservation that will preempt the unreserved workload.

GPU Booking calendar with slot grid

The slot grid now shows your reservation alongside user1’s consumed workloads:

Slot grid showing user2 reservation and user1 consumed slots
GPU Booking grid showing user2 reservation and user1 consumed slots

Create an RHOAI workbench

  1. Open the Red Hat OpenShift AI dashboard:

    Log in as user2 with password %password%.

  2. Navigate to Projects and select the User user2 Project.

  3. Click Create a workbench and fill in:

    • Name: fake-gpu-workbench

    • Image selection: Training | Jupyter | PyTorch | CUDA | Python

    • Hardware profile: Reserved GPU (Project-scoped)

RHOAI workbench creation form with Reserved GPU hardware profile
  1. Adjust the Resource requests and limits to request 1 GPU, 1 CPU, and 1Gi of memory.

    RHOAI workbench resource requests
  2. Click Create workbench and wait for it to reach Ready status.

RHOAI workbench in Ready state

Verify Kueue state

  1. Log in to the CLI as user2:

    oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user2 -p %password%
  2. Check the Kueue resources:

    oc get lq,cq,workload -A

    Expected 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       16s

    This output shows preemption in action:

    • user1’s workloads are now ADMITTED=False or have no admission status. Kueue evicted them to free the GPU for user2’s reservation. The unreserved queue shows 2 pending workloads that are waiting for resources.

    • user2’s workload shows ADMITTED=True and RESERVED 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 user2 ClusterQueue belongs to the same unreserved cohort — this is how Kueue’s reclaimWithinCohort policy allows reserved workloads to reclaim resources from unreserved ones.

Verify

✓ GPU booking created for user2
✓ Workbench fake-gpu-workbench is running in RHOAI
✓ user2’s ClusterQueue and LocalQueue are visible in Kueue

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: user1
Switch to the user1 CLI context:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%
  1. Check the pods in user1’s namespace:

    oc -n user-user1 get pods

    Expected output:

    NAME                            READY   STATUS            RESTARTS   AGE
    gpu-fake-gpu-54959878d8-g88dn   0/1     SchedulingGated   0          15m

    user1’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.

  2. Open the GPU Booking > Bookings page to see the preemption reflected in the usage overview. user2’s reservation (red) now holds 1 GPU:

GPU Booking showing preemption — user2 reservation active while user1 is evicted

user2: Delete workbench and observe recovery

Acting as: user2
Return to the RHOAI dashboard as user2.

  1. In RHOAI, navigate to Projects > User user2 Project > Workbenches.

  2. Delete the fake-gpu-workbench workbench using the kebab menu (three dots).

  3. Once the workbench is deleted, user2’s workload releases the GPU. user1’s pod will automatically recover and return to Running status.

user1: Pod recovers

Acting as: user1

  1. Verify user1’s pod is running again:

    oc -n user-user1 get pods

    Expected output:

    NAME                            READY   STATUS    RESTARTS   AGE
    gpu-fake-gpu-54959878d8-4gknt   1/1     Running   0          2m

    Once user2’s workbench released the GPU, Kueue automatically re-admitted user1’s workload. The pod transitions from SchedulingGated back to Running without any manual intervention.

user2: Cancel booking

Acting as: user2
Return to the OpenShift Console as user2.

  1. Navigate to GPU Booking > Bookings and click My Bookings.

  2. Click Cancel All to remove the GPU reservation, then click Confirm.

GPU Booking My Bookings with Cancel All button

Acting as: user2
Switch to the user2 CLI context:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user2 -p %password%
  1. Verify that the Kueue resources for user2 are removed:

    oc -n user-user2 get cq,lq,hardwareprofile

    Expected 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), the reserved LocalQueue, and any HardwareProfiles. This ensures no stale reservation state remains on the cluster.

Verify

✓ user1’s pod was preempted (SchedulingGated) when user2’s reserved workload started
✓ user1’s pod recovered to Running after user2 deleted the workbench
✓ user2’s ClusterQueue, LocalQueue, and HardwareProfiles removed after canceling the booking

Exercise 5: Cleanup

user1: Delete workload

Acting as: user1

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%
  1. Delete the unreserved deployment:

    oc -n user-user1 delete deployment gpu-fake-gpu

    Expected output:

    deployment.apps "gpu-fake-gpu" deleted

user2: Delete storage

Acting as: user2

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user2 -p %password%
  1. Delete the workbench storage:

    oc -n user-user2 delete pvc fake-gpu-workbench-storage

    Expected output:

    persistentvolumeclaim "fake-gpu-workbench-storage" deleted

Verify

✓ No deployments remain in user1
✓ No PVCs remain in user2
✓ GPU resources fully released

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 reclaimWithinCohort policy

  • 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