Node and Scaling Errors — NotReady, Scale-Up, Drain, Terminating and HPA
How to diagnose the failures above any one pod: nodes going NotReady, autoscalers that will not add or remove nodes, drains blocked by PodDisruptionBudgets, pods stuck Terminating, and HPAs that cannot read metrics, on EKS, AKS and GKE.
Overview
These failures sit above any one pod. A node stops reporting, the cluster will not grow, a drain never finishes, a pod will not die, or an autoscaler sits still. They rarely look like one broken service. They look like several unrelated workloads degrading at once, and that pattern is itself the clue: when unrelated services fail together, check the node and capacity layer before you open any application log.
Work from the control loop outward. Every item on this page is a controller that has stopped acting: the node lifecycle controller, the scheduler, the Cluster Autoscaler or Karpenter, the Eviction API guarded by a PodDisruptionBudget, the kubelet finishing a pod, or the HPA controller reading metrics. Each one writes down why it did nothing, in a node condition, an event, a status ConfigMap or an HPA condition. Your job is to find that written reason, not to guess.
The one idea to keep: capacity problems are almost always accounting problems. The scheduler, the autoscalers and the HPA all reason about resource *requests*, not real usage, and the eviction machinery reasons about *budgets*, not health. Wrong numbers in a spec produce most of the incidents on this page.
Symptom to first command
Each symptom points at one controller, so each comes with its most likely cause and the first command to run.
- Node not ready: a node that shows NotReady or Unknown has a kubelet or runtime that is down, a CNI that is not initialized, or no network. Read its conditions with kubectl describe node | grep -A12 Conditions.
- No node arrives: pods stay Pending because the node group is at its maximum, the pod fits no instance type, or the cloud is out of capacity or quota. Start with kubectl events -n prod --for pod/.
- Drain never ends: when kubectl drain retries forever, a PDB allows zero disruptions. Run kubectl get pdb -A.
- Pod will not die: a pod stuck Terminating sits on an unreachable node, waits on a finalizer, or has a volume that will not unmount. Check its finalizers with kubectl get pod -n prod -o jsonpath='{.metadata.finalizers}'.
- HPA target unknown: an HPA target of means metrics-server is down or CPU requests are missing. Run kubectl describe hpa orders -n prod.
- Pressure evictions: a node with DiskPressure or PIDPressure that evicts pods is being exhausted by logs, images or a fork bomb. Run kubectl describe node | grep -E 'Pressure|Taints'.
- Nodes never leave: nodes that stay mostly empty have scale-down blocked by PDBs, local storage or annotations. Read kubectl get configmap cluster-autoscaler-status -n kube-system -o yaml.
The figure follows a load spike through every controller on this page. Each red box is a place where one of them stops acting.
Key concepts
- Node Lease
- Taint-based eviction
- Node-pressure eviction
- Eviction API
- PodDisruptionBudget
- NotTriggerScaleUp
- Karpenter NodePool and NodeClaim
- Finalizer
- Out-of-service taint
- Resource metrics API
Interview questions
- Three nodes in one availability zone go NotReady at once. Pods on them keep serving errors for about five minutes before moving. Walk me through it.
- A traffic spike arrives, the HPA raises replicas, but new pods stay Pending for 20 minutes. What happened and how do you fix it?
- A managed node group upgrade has been stuck for an hour on draining. How do you find the blocker, and how does this differ on EKS, AKS and GKE?
- A node lost power. The StatefulSet pod orders-db-0 on it has been Terminating for 40 minutes and the database is down. What do you do?
- After the team enabled a service mesh, the orders HPA stopped scaling and shows /70%. Explain.
- Pods on one node keep getting Evicted, yet the node shows Ready. Unrelated workloads are affected. How do you work it?
- Traffic dropped by half overnight but the node count stayed the same for a week. Finance is asking why. How do you find out?
Sign up free to read the full topic
More DevOps topics
- Monitoring and Troubleshooting
- Monorepo Build Systems
- MSVC Toolchain and Windows Native Build
- Multi-Cluster GitOps
- Native Artifact Signing and Release
- Native Debugging — gdb, Core Dumps and Symbols
- Notifications, Alerts and Webhooks
- OpenFeature & Feature Flag Governance
- OpenTelemetry
- OpenTelemetry Collector — Pipelines & Deployment
- Overlay vs Underlay Networking
- PCI-DSS and SOC 2 for Kubernetes
Start free on Cariara · Coding problems · System design studio