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.
More on Scheduling and Pending Pods
Pods are Pending with `0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod.`Beginner`kubectl top nodes` shows nodes at 20% CPU, yet new Pods fail with `Insufficient cpu`. Explain it to a developer.Beginner`0/4 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had untolerated taint {dedicated: gpu}`.BeginnerA StatefulSet Pod is Pending with `pod has unbound immediate PersistentVolumeClaims`.Beginner`0/3 nodes are available: 3 node(s) didn't match Pod's node affinity/selector.`BeginnerA 6-replica Deployment has 3 Pods Running and 3 Pending: `0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules`.Intermediate