-
Notifications
You must be signed in to change notification settings - Fork 48
OCPBUGS-62517: Set replicas=1, PDB, and pod anti-affinity for HA topology #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ options: | |
| enabled: true | ||
| deployment: | ||
| image: ${OPERATOR_CONTROLLER_IMAGE} | ||
| replicas: 1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make replica count topology-aware instead of hard-coding 1. Line 11 pins 🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is updated via cluster-olm-operator; so this value is appropriate here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| podDisruptionBudget: | ||
| enabled: false | ||
| catalogd: | ||
|
|
@@ -26,6 +27,15 @@ namespaces: | |
| # Deployment values for operator-controller | ||
| deployments: | ||
| templateSpec: | ||
| affinity: | ||
| podAntiAffinity: | ||
| preferredDuringSchedulingIgnoredDuringExecution: | ||
| - weight: 100 | ||
| podAffinityTerm: | ||
| topologyKey: kubernetes.io/hostname | ||
| labelSelector: | ||
| matchLabels: | ||
| control-plane: operator-controller-controller-manager | ||
| priorityClassName: system-cluster-critical | ||
| securityContext: | ||
| seLinuxOptions: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid hard-coding catalogd to a single replica.
Line 11 fixes
replicasat1, which prevents HA rollout protection on multi-node clusters. This should follow cluster topology (SingleReplica vs HighlyAvailable) rather than being globally pinned.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is updated via cluster-olm-operator; so this value is appropriate here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmshort, understood — thereplicas: 1in the Helm chart is intentionally a conservative default that gets overridden bycluster-olm-operatorbased on the actual cluster topology (e.g. HA vs. SNO). I'll withdraw my concern. Thanks for the clarification!