Write a Job that names a queue The developer writes a training Job manifest with GPU requests (such as nvidia.com/gpu) and the kueue.x-k8s.io/queue-name label pointing at the team’s LocalQueue.
Evaluation, data preprocessing, and other run-to-completion work is submitted the same way.
On submit, the Job is accepted but suspended When you kubectl apply it, Kueue puts the Job in the suspended state. No Pods exist yet.
Kueue creates a Workload object that represents the Job and computes the GPUs needed across all of its Pods.
An over-quota request just keeps waiting A request larger than the ClusterQueue can provide, even with borrowing, can never be admitted. It is not rejected with an error; it stays Pending.
A misspelled LocalQueue name has the same effect. The status message in kubectl describe workload explains why.
Admissible Jobs line up in the ClusterQueue Requests within quota wait their turn in the ClusterQueue. The order depends on priority and the queueing strategy (BestEffortFIFO or StrictFIFO).
A queue can borrow unused quota from other queues in the same cohort. A Job running on borrowed quota can be pushed out when the owner reclaims it.
When quota frees up, the Job is admitted and runs When GPU quota has room, Kueue admits the Workload: it reserves the quota, injects the ResourceFlavor’s node labels into the Pods, and unsuspends the Job.
Only then does the Job controller create Pods, and kube-scheduler places them on GPU nodes.
A preempted Job goes back to the queue When a higher-priority Job arrives or lent quota is reclaimed, Kueue preempts a running Job. Its Pods are terminated and the Job returns to the queue, suspended again.
Losing a node has a similar effect. Without checkpoints, training starts over from the beginning.
Watch out The longer the training run, the shorter the checkpoint interval should be. Write the code so a restart resumes from the latest checkpoint.
The Job writes checkpoints and results, then ends The training Job writes checkpoints during training and the final weights at the end, to a PVC or object storage. When its completion criteria are met, the Job becomes Complete and Kueue releases the quota.
Pod logs disappear when the Pod is deleted. Collect logs and training metrics somewhere else.
Register the artifacts as a model version The last step of the training code registers a new version in a model registry such as MLflow. The version records the artifact location and the run ID, and that run holds the hyperparameters, so you can trace which Job produced the model.
From here it is the same as lessons 06 and 08: package it as a deployable artifact and cache it on nodes before serving.
Evaluation scores go into the run history An evaluation Job goes through the same queue and logs its scores to the run history. Comparisons only mean something when versions are scored on the same eval set.
Put an alias only on versions that pass the bar and have serving follow that alias. Then nobody has to pick the version to deploy by hand.
Wait in the queue, end in the registry Submit → suspended → queued → admitted → run on GPU nodes → checkpoints → register a model version. Evaluation scores stay in the run history for comparing versions.
If a Job waits a long time, the Workload status tells you whether it is quota, Jobs ahead of it, or preemption.
Summary Use kubectl get workloads and kubectl describe workload for the waiting reason, and kubectl describe clusterqueue for quota usage.