A spot capacity event reclaimed a third of the nodes within two minutes and the checkout service dropped to zero ready pods.
AdvancedTroubleshootingKubernetes cluster-level
Answer
Likely causes → All checkout replicas ran on spot nodes of the same instance type in the same pools, so one reclaim took all of them. Without a handler, the 2-minute interruption notice wasn't used to drain, and with no PDB or topology spread nothing stopped the replicas from being co-located.
Diagnose →
kubectl get pods -l app=checkout -o wide
kubectl get nodes -L karpenter.sh/capacity-type,node.kubernetes.io/instance-type,topology.kubernetes.io/zone
kubectl get events -A | grep -iE 'spot|interrupt|terminat' | tail
Fix → Scale checkout up on on-demand capacity now (a node affinity for capacity-type=on-demand on critical services).
Prevent → Run a baseline of critical replicas on on-demand, spread replicas with topologySpreadConstraints across zones and nodes, diversify spot across many instance types, handle interruption notices (Karpenter interruption queue or AWS Node Termination Handler), and set PDBs so drains happen one pod at a time.
More on Kubernetes cluster-level
Every `kubectl` command fails with "The connection to the server 10.0.1.10:6443 was refused - did you specify the right host or port?"BeginnerA new deployment's pods stay Pending with "0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod."BeginnerPods are Pending, but Cluster Autoscaler won't add nodes; the pod events say "pod didn't trigger scale-up: 2 node(s) didn't match Pod's node affinity/selector, 1 max node group size reached".IntermediateA node goes NotReady and kubelet logs "PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s".IntermediateAfter a node was terminated, its pods have shown `Terminating` for two hours and their replacements aren't being created.IntermediateYou deleted a namespace an hour ago and it's still `Terminating`.Intermediate