zero_yu
zero_yu

Reputation: 503

Pod deletion strategy during rolling update

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

Answers (1)

mdaniel
mdaniel

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

Related Questions