Deployments advanced ⏱ 30 minutes K8s 1.29+

What's New in Kueue v0.21.0: Breaking Changes

Kueue v0.21.0 removes v1beta1 CRDs, graduates DRA features to Beta, and adds Helm structured config overrides.

By Luca Berton • • 📖 5 min read

💡 Quick Answer: Kueue v0.21.0 removes the v1beta1 API entirely (migrate to v1beta2 first), graduates several DRA and fair-sharing features to Beta (enabled by default), and reworks MultiKueue quota management — review every migration step below before upgrading, or the CRD update and/or controller-manager startup will fail.

The Problem

Kueue v0.21.0 is a heavy actions-required release. Several changes are not additive: they remove deprecated API versions, reject previously-accepted configurations at startup, and change Go API types. Upgrading without the prerequisite steps can leave the CRD update rejected by the API server, or the kueue-controller-manager crash-looping on boot.

The Solution

Treat this as a staged upgrade: migrate CRDs off v1beta1 first, audit feature-gate and DRA/MultiKueue config for now-invalid combinations, then upgrade the controller and Helm values together. Do not skip straight from v0.20.2 to v0.21.0 without reading the v0.19.0 and v0.20.0 notes too, since Kueue requires reviewing every minor version crossed.

Whats New

  • API (breaking): v1beta1 is fully removed from Kueue CRDs and from the kueue, config, and visibility Go packages. (#16485)
  • AdmissionChecks: New WorkloadValidateUniquePodSetUpdates feature gate (Beta, on by default) rejects admission checks that write more than one podSetUpdates entry for the same PodSet — previously this could place TAS pods on nodes whose taints they didn’t tolerate. (#18021)
  • CLI: kueuectl create clusterqueue now rejects borrow-only flavors that only set --borrowing-limit/--lending-limit without a zero --nominal-quota, preventing silently-inactive ClusterQueues from misspelled flavor names. (#16651)
  • ConcurrentAdmission: Default spec.concurrentAdmissionPolicy.migration.mode is now TryPreferredFlavors; the Go field ConcurrentAdmissionMigration.Mode is now a pointer type. (#17012)
  • DRA: Duplicate counter/capacity sources with the same driver+name in deviceClassMappings are now rejected at startup (previously double-charged quota). (#18921)
  • DRA: KueueDRAIntegrationPrioritizedList graduates to Beta, enabled by default — CEL selectors of firstAvailable requests are checked against real cluster devices. (#19158)
  • DRA: Consumable-capacity quota graduates to Beta — DeviceClass capacity dimensions can use separate quota resources; Kueue reports when request rounding increases a charge. (#17636)
  • MultiKueue: New feature-gated Dynamic Quota Orchestration capacity provider sums quota from connected worker ClusterQueues via MultiKueueCapacityProviderConfig. MultiKueueConfig.spec.quotaManagement is deprecated/ignored. The MultiKueueManagerQuotaAutomation feature gate, its ClusterQueue condition, and the multikueue_cluster_status metric are removed. (#18382)
  • FairSharing: New Beta FairSharingPreemptWithinClusterQueueFallback gate (on by default) retries preemption within the same ClusterQueue when the final fair-sharing check rejects targets. (#19009)
  • Helm: New managerConfig.structuredOverrides lets you customize manager settings without copying the whole config; managerConfig.mode: structured|yaml controls precedence. (see release notes)

Upgrade Steps

  1. Before touching v0.21.0, if not already done, migrate off v1beta1:
# From a checkout of the Kueue repo matching your current version
hack/migrate-to-v1beta2.sh

# Then remove v1beta1 from each CRD's status.storedVersions
kubectl get crd clusterqueues.kueue.x-k8s.io -o jsonpath='{.status.storedVersions}'
kubectl patch crd clusterqueues.kueue.x-k8s.io --subresource=status \
  --type=merge -p '{"status":{"storedVersions":["v1beta2"]}}'
# Repeat for all Kueue CRDs (workloads, resourceflavors, admissionchecks, etc.)
  1. Audit feature gates and config before upgrading:

    • If you disable KueueDRAIntegration, also disable KueueDRAIntegrationPrioritizedList and KueueDRAIntegrationConsumableCapacity, or the controller manager fails to start.
    • If you disable FairSharingVerifyFinalTargets, also disable FairSharingPreemptWithinClusterQueueFallback.
    • Remove MultiKueueManagerQuotaAutomation from your feature gates if present.
    • Deduplicate resources.deviceClassMappings sources.
  2. Upgrade CRDs and controller (adjust to your install method — kubectl manifests or Helm):

kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases/download/v0.21.0/manifests.yaml
  1. Or via Helm, update the chart and merge managerConfig values carefully:
helm repo update
helm upgrade kueue kueue/kueue \
  --namespace kueue-system \
  --version 0.21.0 \
  --reuse-values

If your current values put unknown keys directly under managerConfig, remove them first — only mode, structuredOverrides, and controllerManagerConfigYaml are valid. To adopt structured overrides, set managerConfig.mode: structured explicitly and move your customizations into managerConfig.structuredOverrides in the values passed to --reuse-values.

  1. If you use kueuectl to manage borrow-only flavors, add an explicit zero nominal quota, e.g. --nominal-quota "alpha:cpu=0" --borrowing-limit "alpha:cpu=4".

Verify

# Confirm controller is running the new version
kubectl -n kueue-system get deployment kueue-controller-manager -o jsonpath='{.spec.template.spec.containers[0].image}'

# Confirm CRDs no longer store v1beta1
kubectl get crd clusterqueues.kueue.x-k8s.io -o jsonpath='{.status.storedVersions}'

# Check controller logs for feature-gate startup errors
kubectl -n kueue-system logs deployment/kueue-controller-manager | grep -i -E 'feature|fatal'

# Spot-check a ClusterQueue is Active
kubectl get clusterqueue -o wide

Common Issues

  • CRD apply rejected: status.storedVersions still lists v1beta1 — run the migration script and patch storedVersions before re-applying CRDs.
  • Controller manager crash loop: a disabled parent feature gate (KueueDRAIntegration, FairSharingVerifyFinalTargets) left a dependent gate enabled — align both.
  • ClusterQueue stuck inactive: duplicate deviceClassMappings sources, or a borrow-only flavor missing an explicit zero --nominal-quota.
  • MultiKueue quota drift: MultiKueueConfig.spec.quotaManagement is now ignored; migrate to MultiKueueCapacityProviderConfig + DynamicQuotaOrchestrator if you relied on automated manager quota sync.

Best Practices

  • Read the v0.19.0 and v0.20.0 release notes too if you’re jumping from an older minor version — Kueue explicitly requires reviewing each crossed minor release.
  • Run the v1beta2 migration and CRD storedVersions patch in a maintenance window, separate from the controller image upgrade, so you can verify each step.
  • Pin Helm managerConfig.mode explicitly in your values file going forward to avoid ambiguity between YAML and structured overrides on future upgrades.
  • After upgrading, grep controller logs for feature-gate dependency errors before declaring the rollout healthy.
#kueue #batch #job-queueing #multikueue #dra #helm #crd-migration
Luca Berton
Written by Luca Berton

Principal Solutions Architect specializing in Kubernetes, AI/GPU infrastructure, and cloud-native platforms. Author of Kubernetes Recipes and creator of CopyPasteLearn courses.

Book by Grzegorz Stencel & Luca Berton

Kubernetes Recipes

  • Paperback · eBook
  • Apress
  • 750 pages

This recipe is from Kubernetes Recipes, our 750-page practical guide with hundreds of production-ready patterns.

Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens