-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Describe the bug
When the deployments managed by the operator are updated and the pod placement in the same node,
it leads to the new pods always being in the pending state due to the way we have defined the updateStrategy
and podAntiAffinity
rules.
The strategy of maxSurge > 0 instructs the scheduler to create new pods before it evicts older ones. The new pods will never be in running state as the anti-affinity rules prevent that.
As a result, we reach a deadlock. The new pods can't start because of the old pods, and the old pods won't be removed until the new one starts.
To remedy this, we can have maxSurge: 0
and maxUnavailable: 1
which can enable us to do in-place rollouts, one by one.
Metadata
Metadata
Assignees
Labels
No labels