Interview Prep/Kubernetes/Scheduling and Pending Pods

Pods requesting `memory: 7Gi` stay Pending on 8 GiB nodes even though the nodes are empty.

BeginnerTroubleshootingScheduling and Pending Pods
Answer

Likely causes → Allocatable is not capacity. kube-reserved, system-reserved and the eviction threshold are subtracted. An 8 GiB EKS node typically has around 6.9–7.1 GiB allocatable, minus DaemonSet requests.

Diagnose →

kubectl get node ip-10-0-1-5 -o jsonpath='{.status.capacity.memory}{" capacity / "}{.status.allocatable.memory}{" allocatable\n"}'
kubectl describe node ip-10-0-1-5 | grep -A8 'Allocated resources'

Fix → Lower the request or move to a larger instance type.

Prevent → Size Pods against allocatable minus DaemonSet overhead; pick nodes where the largest Pod uses at most half the node.

All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling and Pending Pods