k8s-node-termination-handler icon indicating copy to clipboard operation
k8s-node-termination-handler copied to clipboard

[Question] Why not evicting the pods instead of deleting them?

Open danielfm opened this issue 4 years ago • 1 comments

Instead of deleting the pod, why not evicting it? Evicting the pod would be better since it would respect any PDBs targeting the pod.

danielfm avatar Jul 30 '19 22:07 danielfm

I believe it may be related to the conditions the node is in - there may be just not enough time to run eviction. If node is going to be killed in 30s, then there is really no guarantee that the eviction will be finalized in that time, so it is better to treat it as involuntary disruption.

Moreover in very rare occasions preemptible instances may not get the notification that they are going to be shut off, so in fact this should be treated as node loss.

nvtkaszpir avatar Aug 10 '19 17:08 nvtkaszpir