Why is force-deleting a stuck StatefulSet Pod (`--force --grace-period=0`) on an unreachable node dangerous?
AdvancedTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → The node is partitioned, not necessarily dead. Force delete removes the API object, the StatefulSet immediately creates db-0 elsewhere, and now two db-0 processes may write to the same data (split brain), breaking StatefulSet at-most-one semantics.
Diagnose →
kubectl get node ip-10-0-2-7 -o jsonpath='{.status.conditions[?(@.type=="Ready")]}'
# Confirm in the cloud console that the instance is actually stopped/terminated
aws ec2 describe-instances --instance-ids i-0abc --query 'Reservations[].Instances[].State.Name'
Fix → First confirm the node is really gone (or stop the instance), then delete the Node object or force delete the Pod. On 1.28+ you can apply the node.kubernetes.io/out-of-service=nodeshutdown:NoExecute taint after confirming shutdown, which lets volumes detach and Pods move safely.
Prevent → Runbook: fence first, then force. Use databases with their own leader election and fencing.
More on Resources, OOM, probes and termination
`kubectl describe pod` shows `Last State: Terminated, Reason: OOMKilled, Exit Code: 137`.BeginnerA Java service is OOMKilled at 2 GiB limit but the heap is only `-Xmx1800m`.IntermediateMany Pods on one node were killed at once and the node shows a `SystemOOM` event. Container limits were not reached.AdvancedPods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.IntermediateA Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.Intermediatep99 latency spikes every few seconds, CPU usage graph shows only 40% of the limit.Advanced