Skip to content

Update the deployment strategy for CSI deployments #273

@black-dragon74

Description

@black-dragon74

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions