-
Notifications
You must be signed in to change notification settings - Fork 26
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
[OSD-25656] Enhance the affinity rules to avoid pod mis-scheduling #62
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: xiaoyu74 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 |
I created a script to loop through all the HCP namespaces on the MC ( Based on this, the updated logic sets the |
/label tide/merge-method-squash |
@xiaoyu74: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What type of PR is this?
(bug)
What this PR does / Why we need it?
Enhance the affinity rules to avoid metrics-forwarder pod mis-scheduling.
Which Jira/Github issue(s) does this PR fix?
https://issues.redhat.com/browse/OSD-25656
For reviewer
Based on the ticket description, the current logic to determine if the metrics-forwarder pod is mis-scheduled is:
1. Check the node label:
2. Compare namespace and serving node label:
So, to resolve the mis-scheduling issue, I just enforce strict affinity rules in the metrics-forwarder deployment config to ensure the pod is scheduled only on nodes with the hypershift.openshift.io/cluster label matching the pod's namespace.
Also, based on the test outcome, I can see there is case that many serving nodes have the hypershift.openshift.io/cluster label missing, we need to provide a affinity configuration that accommodates these scenarios as well.
Basically, in the PR, I just:
P.S More context and test outcome is in the Jira ticket OSD-25656