Kubernetes v1.36: Advancing Workload-Aware Scheduling
Kubernetes v1.36 splits workload scheduling into a static Workload template and a runtime PodGroup API (scheduling.k8s.io/v1alpha2). kube-scheduler gains a PodGroup scheduling cycle that snapshots cluster state once and places or rejects a whole group atomically, which is the basis for gang scheduling. The release also adds rack-style topology-aware placement through new PlacementGenerate/PlacementScore extension points, and cluster-wide workload-aware preemption with group priority and disruptionMode. DRA ResourceClaims can now be generated and reserved per PodGroup, lifting the 256-entry reservedFor limit, and the Job controller can create Workload and PodGroup objects automatically behind the WorkloadWithJob gate. Known limits: placement is not guaranteed for heterogeneous groups or groups with inter-Pod dependencies.
Related posts
- Kubernetes v1.37: Advancing Workload-Aware Scheduling
Kubernetes Blog hardMasterKubernetes v1.37 promotes the Workload and PodGroup APIs (gang scheduling), workload-aware preemption and shared DRA ResourceClaims for PodGroups to Beta. It also adds an alpha CompositePodGroup API for hierarchical, multi-level gang scheduling, preemption and topology constraints, aimed at structures like JobSet and LeaderWorkerSet. PodGroups are now queued as single units, minCount is mutable for elastic workloads, and preemption runs the scheduling algorithm once instead of per victim reprieval and now respects PodGroup disruptionMode (renamed to all/single). Multi-level topology constraints are resolved top-down, for example zone at the root and rack for child groups, and a new workloadbuilder Go library helps controllers integrate.
- Kubernetes v1.37: Scheduler Preemption for In-Place Pod Resize (Alpha)
Kubernetes Blog mediumAdeptKubernetes v1.37 adds alpha scheduler preemption for in-place Pod resize behind the InPlacePodVerticalScalingSchedulerPreemption feature gate. Running Pods whose scale-up is Deferred for lack of node headroom are now tracked by kube-scheduler, which preempts lower-priority Pods on that same node, respecting PDBs and graceful termination, while treating the requested resize resources as already reserved. The Kubelet's critical Pod admission handler no longer evicts locally for resizes, so the scheduler makes every resize preemption decision. A new Node spec.podPreemptionPolicy field lets autoscalers opt nodes out, and a kind-based walkthrough shows a deferred CPU resize completing after a low-priority Pod is preempted.
- Kubernetes v1.36: More Drivers, New Features, and the Next Era of DRA
Kubernetes Blog hardMasterKubernetes v1.36 graduates several Dynamic Resource Allocation features: prioritized device lists go stable, and extended resource support, partitionable devices, device taints, binding conditions and resource health status reach beta. New alpha features include ResourceClaims for PodGroups, DRA-managed CPU and memory with NUMA awareness, a ResourcePoolStatusRequest for capacity snapshots, and list-typed attributes with intersection semantics and a CEL includes() function. Other alpha additions are deterministic lexicographic device selection and a standard protocol for exposing device metadata to containers as versioned JSON files via CDI bind-mounts. The project's stated goal is to migrate users from Device Plugins to DRA.
- Avoiding Kubernetes Pod Topology Spread Constraint Pitfalls
Wise Engineering mediumAdeptKubernetes Pod Topology Spread Constraints with a naive LabelSelector (e.g. just the app label) can produce heavy zone skew during rolling updates, because kube-scheduler counts Pods from both old and new ReplicaSets and never rebalances when old Pods are randomly terminated. In the worst case an Availability Zone outage could take out 2/3 of a service's Pods instead of 1/3. Wise fixed this with a mutating admission webhook that adds a per-ReplicaSet UUID label to Pods and to the constraint's LabelSelector, so only new-version Pods are considered. Alternatives include manifest tooling changes, the alpha matchLabelKeys field with pod-template-hash in Kubernetes 1.25, descheduler for scale-down imbalance, or per-zone deployments or clusters.
- Spotlight on WG Device Management
Kubernetes Blog easyNoviceKubernetes' Device Management Working Group built Dynamic Resource Allocation (DRA), now GA since 1.34, to replace the Device Plugin API's opaque integer device counts with a structured model of modeling (ResourceSlice), requesting (ResourceClaim), scheduling and actuation. ResourceClaims can express attribute-based requests and prioritized alternatives, such as one 80GB A100 or two 40GB A100s. ResourceSlices model overlapping partitions like MIG, and "consumable capacity" lets the scheduler carve bandwidth or memory out of a shared device, such as 2Gbps from a 40Gbps NIC. Ongoing KEPs cover device taints, health status, multi-node topology-aware allocation and workload-aware scheduling.