Add option to disable MetalLB, for use w/ ext LBs #383
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Not sure how useful it'd be to the majority, since it's one of the project's best features.
But I thought it would be nice to have the option to disable MetalLB altogether, too.
(By default it still being enabled)
Instead, you could use an external load balancer, like HAProxy, maybe on your pfSense/OPNsense instance, if you're using it for something already.
I've been using this project in my homelab and MetalLB is wonderful. Works great, very convenient.
Now it seems we'll use this at work too, since you know, why reinvent the wheel?
But, we already have big beefy purpose built hardware load balancers in use, we'd like to use them with a NodePort type ingress, without deviating / maintaining a separate fork of the project.
As you can see in the commit, I've only added a simple
metal_lb_configure: true
on/off switch, the default being on, and a condition in thek3s_server
andk3s_server_post
main.yml where the metallb tasks get included.Checklist
site.yml
playbookreset.yml
playbook