Skip to content

fix(sync): prevent rolling update when unexpected pods are down#3112

Open
ovnozdrach wants to merge 2 commits into
zalando:masterfrom
ovnozdrach:feature/issue-2966-check-running-pods
Open

fix(sync): prevent rolling update when unexpected pods are down#3112
ovnozdrach wants to merge 2 commits into
zalando:masterfrom
ovnozdrach:feature/issue-2966-check-running-pods

Conversation

@ovnozdrach

Copy link
Copy Markdown
Contributor

Description

This is to completely address issue #2966

Problem

It's possible to introduce an invalid configuration into a sidecar (e.g., negative container port). Previously, this would trigger a cascading failure. The operator would try to recreate pods one by one during each sync interval (30 minutes), but because the spec was invalid, each new pod would not start. This process would continue until the entire cluster was terminated, resulting in a complete outage.

Solution

This change introduces a pre-flight check before starting any rolling update. The operator now ensures that the total number of pods is stable and that any pod that is not running is already part of the planned update. If an unexpected pod is down or missing, the operation is postponed, preventing the cascading deletion of healthy instances. This logic is compatible with and enhances the stability checks from #3051.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant