Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kubernetes Blog 9 min read How-to mediumAdept

Why Is My Kubernetes Job Still Pending? Tracing Kueue Admission with Headlamp

A pending Job in a Kueue-managed cluster is often waiting on Kueue admission, not kube-scheduler, so troubleshooting should start with the Workload's QuotaReserved and Admitted conditions before looking at Pods. The read-only 0.1.0-alpha Kueue plugin for Headlamp lets you follow links from a Workload through its LocalQueue, ClusterQueue, ResourceFlavor and Cohort to compare total PodSet requests against quota, borrowing limits and policy. In the worked example, a three-Pod, three-CPU Job stays suspended because its ClusterQueue offers only two CPUs and two Pod slots. The rule of thumb: if the Workload is not admitted, inspect Kueue resources; if it is admitted but Pods are Pending, switch to Job and Pod events for scheduler issues.

Related posts

  • Saving Millions of Dollars by Bin-Packing ClickHouse Pods in AWS EKS

    ClickHouse mediumAdept

    ClickHouse Cloud raised EKS cluster CPU utilization from about 50% to 70% by switching the Kubernetes scheduler's NodeResourcesFit scoring from LeastAllocated to MostAllocated, cutting node count by roughly 10% and EC2 cost by over 20%. Because EKS doesn't allow kube-scheduler customization, the team deployed a separate kube-scheduler with leader election and pointed pods at it via schedulerName. They rejected lowering autoscaler thresholds, overprovisioning and safe-to-evict on ClickHouse pods as too disruptive for stateful workloads. Supporting fixes covered annotating system pods as safe-to-evict and moving overprovisioning pods onto the same custom scheduler so preemption works. Stress tests and P90/P99 cold-start measurements showed negligible impact, and the change was rolled out region by region.

  • Avoiding Kubernetes Pod Topology Spread Constraint Pitfalls

    Wise Engineering mediumAdept

    Kubernetes 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.

  • Kubernetes v1.37: Introducing Node Lifecycle Conditions

    Kubernetes Blog mediumAdept

    Kubernetes v1.37 reserves five well-known Node conditions: DrainInProgress, Drained, MaintenancePlanned, MaintenanceInProgress and GracefulNodeShutdownInProgress. They give a shared, Kubernetes-owned status signal for drains, maintenance and graceful shutdown. The Alpha NodeLifecycleConditions feature gate is effectively a no-op in this release, and no core controller reads the conditions yet, so administrators or authorized controllers set and clear them to inform people, dashboards and automation. Cordon, drain and taints remain the way to change behavior, and future work aims to let controllers such as DaemonSet use these conditions to avoid stalled rollouts and conflicting decisions.

  • Kubernetes v1.37: Advancing Workload-Aware Scheduling

    Kubernetes Blog hardMaster

    Kubernetes 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.36: Advancing Workload-Aware Scheduling

    Kubernetes Blog hardMaster

    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.

The quest for software engineering knowledge.

Look:
Layout: