Skip to content

Ignore the old revision in anti-affinity so rollouts keep their node - #121

Merged
yama6a merged 2 commits into
mainfrom
ignore-old-revision-in-anti-affinity
Sep 25, 2026
Merged

yama6a merged 2 commits into
mainfrom
ignore-old-revision-in-anti-affinity

Conversation

@yama6a

@yama6a yama6a commented Sep 25, 2026

Copy link
Copy Markdown
Owner

A rolling update starts the new pod while the old one still runs, so hostname anti-affinity pushed every single-replica Deployment off its node on each restart. Scheduler logs showed that 200-point penalty decides placement. matchLabelKeys [pod-template-hash] limits each rule to its own revision, and scale-out still spreads.

Argo CD gets matchLabelKeys on its spread constraint, and its anti-affinity preset goes to none because the preset cannot take the field. The redis-operator rule never matched its pod, which carries only a name label.

@yama6a
yama6a merged commit 7b3b195 into main Sep 25, 2026
5 checks passed
@yama6a
yama6a deleted the ignore-old-revision-in-anti-affinity branch September 25, 2026 21:28
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