Reputation: 503
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.
Upvotes: 0
Views: 159
Reputation: 33221
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.
Upvotes: 2