Skip to content
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

Skip Nodes with LabelNodeExcludeBalancers label #1086

Closed

Conversation

zuzzas
Copy link

@zuzzas zuzzas commented Nov 29, 2021

Have an option to skip peering with Nodes that are labeled by node.kubernetes.io/exclude-from-external-load-balancers.

Service controller that is used by each Cloud Provider Interface implementer use this logic, I'd like to have it integrated into MetalLB as well.

The dependency injection part of the submitter code looks ugly. If you've got ideas on how to improve, I'll do them in a heartbeat.

Signed-off-by: Andrey Klimentyev <andrey.klimentyev@flant.com>
@fedepaol
Copy link
Member

Hi @zuzzas , thanks for the PR.

We have something similar in the works, which is described in the currently opened design proposal here https://github.com/metallb/metallb/blob/512b276feead332c045243c3979c6b80a452c8cc/design/pool-configuration.md#node--address-pool-mapping (full design proposal #942).

I'd rather leverage the extended flexibility of choosing the nodes from the addresspool object, and have the selection work for both BGP and L2. The behaviour is still not "officially approved" so I'd wait before starting implementing it.

If you need a short term solution, using that label node.kubernetes.io/exclude-from-external-load-balancers as node selector for the speaker daemonset would make the trick, because only the nodes with a running speaker will announce.

@fedepaol
Copy link
Member

Closing this, as it's superseeded by #1302

@fedepaol fedepaol closed this Apr 10, 2022
@zuzzas zuzzas deleted the skip-nodes-with-lb-exclude-label branch April 10, 2022 11:38
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.

None yet

2 participants