Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Kubernetes Scale-Down: Which Pod Terminates First?

Technical Cloud Knowledge 1 min read

During a Kubernetes scale-down, the kube-controller-manager decides which pod to delete first using several factors:

  1. Unhealthy pods: Pods with failed readiness or liveness probes are terminated first.
  2. Pod deletion cost: An annotation (cluster-autoscaler.kubernetes.io/pod-deletion-cost) can prioritize pods; lower-cost pods are removed first.
  3. Node balancing: Pods on nodes that would free up more resources or balance pod distribution are chosen.
  4. Creation order: Among equal-cost pods, those created later are deleted first.

In a ReplicaSet with identical pods, the default order is: randomized with a slight bias toward newer pods. Understanding this logic is crucial for DevOps interviews and production cluster management.

React