Skip to content

Kueue: insufficient unused quota for nvidia.com/gpu

GPUtested on kind v0.33.0 / Kubernetes v1.37.0, Kueue 0.20.7

With Kueue, a job does not wait as a Pending pod at the scheduler but suspended as a workload in the queue. “insufficient unused quota” means: the quota is big enough in principle, it is just in use right now.

Symptom

kubectl -n training get workloads
NAME               QUEUE   RESERVED IN   ADMITTED   FINISHED   AGE
job-lauf-1-fbc79   gpu     training      True                  28s
job-lauf-2-e4744   gpu     training      True                  9s
job-lauf-3-9265e   gpu                   False                 9s

Three jobs (“run 1–3”) with two GPUs each, the training team's quota has four. The third workload is not admitted, and the job is suspended – there is no pod.

Diagnosis

The workload's conditions give the reason including the missing amount.

kubectl -n training get workload job-lauf-3-9265e -o jsonpath='{range .status.conditions[*]}{.type}: {.message}{"\n"}{end}'
QuotaReserved: couldn't assign flavors to pod set main: insufficient unused quota for nvidia.com/gpu in flavor a100, 2 more needed
Admitted: The workload has no reservation
PodsReady: Not all pods are ready or succeeded

Causes

unused quotaQuota in use, not too small

“unused” is the key word: the other admitted jobs occupy the quota. As soon as one finishes, the waiting one moves up.

kubectl get cq training -o jsonpath='{range .status.flavorsUsage[0].resources[*]}{.name}={.total} {end}{"\n"}'
cpu=1 memory=1Gi nvidia.com/gpu=4

suspend trueKueue holds the job

Kueue sets spec.suspend to true until the job is admitted. That is why there is no Pending pod loading the scheduler.

kubectl -n training get job lauf-3 -o jsonpath='{.spec.suspend}{"\n"}'
true

Fix

End a running job (or let it finish) – the waiting one is admitted and starts.
kubectl -n training delete job lauf-1
job.batch "lauf-1" deleted from training namespace
kubectl -n training get jobs
NAME     STATUS    COMPLETIONS   DURATION   AGE
lauf-2   Running   0/1           37s        38s
lauf-3   Running   0/1           5s         37s

Don't: Leave out the queue-name label and set the toleration yourself to get around Kueue. Then jobs run outside any quota.

▶
Break it yourself and find it – free
GPU infrastructure on Kubernetes, Day 10: Kueue with ClusterQueues, LocalQueues and GPU quotas for three teams.
Go to day 10 →

FAQ

What is the difference from a Pending pod?

A Pending pod sits at the scheduler and is re-checked on every cycle. A suspended workload only waits in Kueue and has no pod yet.

How do I spot a job that will never start?

If it requests more GPUs than the quota has at all, it can never be admitted – not even when everything is free.

Related error patterns

More