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

feat(k3s): Add option to set MetalLB interfaces #583

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kuboschek
Copy link

@kuboschek kuboschek commented Oct 3, 2024

Proposed Changes

  • Add option to limit MetalLB announce to specific network interfaces

Checklist

  • Tested locally
  • Ran site.yml playbook
  • Ran reset.yml playbook
  • Did not add any unnecessary changes
  • Ran pre-commit install at least once before committing
  • 🚀

@@ -30,3 +30,4 @@ metal_lb_mode: layer2
metal_lb_available_timeout: 240s
metal_lb_controller_tag_version: v0.14.3
metal_lb_ip_range: 192.168.30.80-192.168.30.90
metal_lb_interfaces:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an empty list by default?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way I can have a condition on this in metallb.crs.j2. If empty, no interfaces are set in the L2Advertisement resource, which in turn triggers the default of metallb: https://metallb.universe.tf/configuration/_advanced_l2_configuration/#specify-network-interfaces-that-lb-ip-can-be-announced-from

Let me know if there's a better default and I'll adjust.

@berendt
Copy link
Contributor

berendt commented Oct 5, 2024

Also add a description of the new parameter in roles/k3s_server_post/meta/main.yml.

@timothystewart6 timothystewart6 added the missing information Further information is requested label Oct 27, 2024
@timothystewart6
Copy link
Contributor

@kuboschek hey! Just wanted to check in to see if you could possibly make a few adjustments

@kuboschek
Copy link
Author

Happy to make some adjustments. I’ll schedule time for this on the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing information Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants