返回综合榜
开发工具与框架Kubernetes Blog

为什么我的 Kubernetes Job 仍处于 Pending?用 Headlamp 追踪 Kueue 准入

Kubernetes 官方博客发布了一篇指南,介绍如何使用新的 0.1.0-alpha 版 Kueue 的 Headlamp 插件诊断在 Kueue 管理的集群中一直处于挂起状态的 Job。该插件为 Workload、LocalQueue、ClusterQueue、ResourceFlavor 和 Cohort(Kueue v1beta2)提供只读视图。

文章将 Kueue 准入与 Pod 调度区分开来:如果 Workload 的 QuotaReserved 或 Admitted 条件为 false,应排查 Kueue 资源;如果 Admitted=True 但 Pod 仍为 Pending,则应转到常规的 Job/Pod 视图查看调度器事件。读者从 Workload 详情页出发,通过链接依次进入 LocalQueue 和 ClusterQueue,对比请求与配额。示例中,一个请求三个 CPU 的三 Pod Job 无法放入只有两个 CPU 和两个 Pod 槽位的 ClusterQueue,因此 Kueue 让其保持挂起。

该 alpha 插件不提供自己的创建、编辑或删除工作流,在脚本和 GitOps 场景下仍需配合 kubectl 和 kueuectl 使用。插件仓库包含示例清单,可在本地复现该场景。

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

The Kubernetes blog published a guide on diagnosing Jobs that stay suspended in Kueue-managed clusters using the new 0.1.0-alpha Kueue plugin for Headlamp, which adds read-only views of Workloads, LocalQueues, ClusterQueues, ResourceFlavors, and Cohorts (Kueue v1beta2).

The walkthrough separates Kueue admission from Pod scheduling: if the Workload's QuotaReserved or Admitted conditions are false, investigate Kueue resources; if Admitted=True but Pods remain Pending, move to standard Job/Pod views and scheduler events. Starting from the Workload detail page, readers follow links through the LocalQueue and ClusterQueue to compare the request against quota. In the example, a three-Pod Job requesting three CPUs fails to fit a ClusterQueue with two CPUs and two Pod slots, so Kueue keeps it suspended.

The alpha plugin does not add its own create, edit, or delete workflows and remains a complement to kubectl and kueuectl for scripts and GitOps. The plugin repository includes sample manifests to reproduce the scenario locally.

kuberneteskueueheadlampjob-schedulingtroubleshootingquota-managementtutorial
综合9
质量88
猎物热度0
时效0
信息来源1 个来源,主来源:Kubernetes Blog

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源