Skip to content

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

Open
kuboschek wants to merge 5 commits into
timothystewart6:masterfrom
kuboschek:with-metal-lb-interface
Open

feat(k3s): Add option to set MetalLB interfaces#583
kuboschek wants to merge 5 commits into
timothystewart6:masterfrom
kuboschek:with-metal-lb-interface

Conversation

@kuboschek
Copy link
Copy Markdown

@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
  • 🚀

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
Copy Markdown
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
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

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

@kuboschek
Copy link
Copy Markdown
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