Pod deletion strategy during rolling update

2/6/2020

Does Kubernetes have any strategy of picking which older version pods to be deleted during rolling update? I didn't find any existing documents describing this.

-- zero_yu
kubernetes

1 Answer

2/6/2020

Pods are supposed to be ephemeral and disposable, and thus if you do care about their ordering, you'd want to use a StatefulSet with podManagementPolicy: which allows you to control the order they are created and then destroyed.

-- mdaniel
Source: StackOverflow