首页/云/Kubernetes 速查/调度只看 requests
本包目录(307 条)
kubectl 基础56 条工作负载36 条网络与服务55 条配置与存储54 条
调度与资源52 条
集群运维与排障54 条

调度只看 requests

调度器用 requests 做过滤与打分,limits 不参与装箱;requests 虚低会让节点「看起来」空闲,超卖与争抢多源于此。

Kubernetes 速查云更新于 2026-10-12

核对方法

核对方法
kubectl describe node node1 | sed -n '/Non-terminated Pods/,/Allocated resources/p'
kubectl describe node node1 | grep -A3 'Allocated resources'

Requests 与 Limits 对照

Requests 与 Limits 对照
Allocated resources:
  Resource   Requests      Limits
  cpu        3600m (45%)   12 (150%)   # Limits 超过 100% 说明在超卖

易错点

  • 按节点 CPU 使用率判断能否再放 Pod:调度器算的是 requests 之和,不是实际使用率
  • Allocatable 小于 Capacity(系统预留与驱逐阈值),容量评估用 Allocatable

数据来源与参考

  • Kubernetes 官方文档 · 调度器如何为 Pod 选择节点
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌