-
Notifications
You must be signed in to change notification settings - Fork 26
[WIP] Add podAntiAffinity to node-healthceck-controller-manager Deployment to improve HA #377
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?
Conversation
…to improve HA This makes sure the two replicas run on different nodes, avoiding a single point of failure. Signed-off-by: Katsuya Kawakami <[email protected]>
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kattz-kawa The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @kattz-kawa. Thanks for your PR. I'm waiting for a medik8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
we have 3 PRs now with the same topic, let's finish discussion on one of the others first, before going on with this one... medik8s/fence-agents-remediation#178 |
Why we need this PR
In the current deployment configuration, multiple replicas of the node-healthcheck-controller-manager can be scheduled on the same node. This creates a single point of failure. This setup does not fully utilize the benefits of having multiple replicas. With better placement, we can use the replicas more effectively.
Changes made
Changes made
podantiaffinity_patch.yaml
under config/patches/affinity/node-healthcheck-controller-manager Deployment
only by specifyingname: controller-manager
in the patch targetpodAntiAffinity
rules to prevent scheduling both replicas on the same nodeapp.kubernetes.io/component: controller-manager
app.kubernetes.io/name: node-healthcheck-operator
kubernetes.io/hostname
Which issue(s) this PR fixes
Test plan