McKube 0 requests sent

Pod Pending: Insufficient Memory

Why kube-scheduler leaves Pods Pending on nodes that appear idle in top, and how initContainers requests affect scheduling.

HIGH · Pending (Memory)

Root Cause

Scheduling checks sum of resources.requests.memory (not live memory usage) against node Allocatable memory. Remember effective pod request = max(sum(containers), max(initContainers)).

How to Fix

  • Run kubectl describe nodes and inspect Allocated resources -> Memory Requests %.
  • Right-size inflated requests.memory values or scale the node pool / Cluster Autoscaler.
  • Check if an oversized initContainer memory request is forcing the scheduler to reserve more RAM than the running app needs.

Diagnostic Commands

kubectl describe nodes | grep -A 5 "Allocated resources"
kubectl get pod <pod> -n <ns> -o yaml