-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Add nodeselector and tolerations for metallb #7334
Add nodeselector and tolerations for metallb #7334
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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/test-infra repository. I understand the commands that are listed here. |
Welcome @francoishernandez! |
Hi @francoishernandez. Thanks for your PR. I'm waiting for a kubernetes-sigs 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/test-infra repository. |
Hey guys, |
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.
Thanks for doing this.
Most part seems good for me, that follows the same way of ingress_nginx.
Just one question.
# - effect: NoSchedule | ||
# key: node-role.kubernetes.io/master | ||
# - effect: NoSchedule | ||
# key: node-role.kubernetes.io/control-plane |
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.
Why do we need to add commented-out lines 356-360?
Or did you want to keep the same lines for else case instead of commented-out lines?
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.
My bad, this was for testing purposes before creating the variables. I'll remove it!
/ok-to-test |
@@ -6,3 +6,7 @@ metallb_port: "7472" | |||
metallb_limits_cpu: "100m" | |||
metallb_limits_mem: "100Mi" | |||
metallb_peers: [] | |||
metallb_speaker_nodeselector: {} | |||
metallb_controller_nodeselector: {} | |||
metallb_speaker_tolerations: [] |
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.
Can we set
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
as the default value of metallb_speaker_tolerations?
According to https://raw.githubusercontent.com/metallb/metallb/v0.9.5/manifests/metallb.yaml the toleration is specified on the manifest.
So I feel it is better to keep it as the default.
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.
Agreed. Adressed in d47e38b.
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.
Thanks for updating again.
Please rebase for the latest master branch as @floryut said to pass CI tests.
I will add /lgtm
again after rebasing also.
/lgtm
9b0401c
to
d47e38b
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, francoishernandez The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@francoishernandez You need to rebase master for tests to succeed |
d47e38b
to
827eb8c
Compare
/lgtm |
* add nodeselector and tolerations for metallb * remove unnecessary commented lines in metallb template * set default speaker toleration to match original manifest
/kind feature
What this PR does / why we need it:
This PR introduces variables to set
tolerations
andnodeSelector
for metallb components (controller
andspeaker
).Variables are:
metallb_speaker_nodeselector
metallb_controller_nodeselector
metallb_speaker_tolerations
metallb_controller_tolerations
Which issue(s) this PR fixes:
Fixes #6806
Special notes for your reviewer:
Followed the same logic as the ingress_nginx addon, e.g. #3742
Does this PR introduce a user-facing change?: