Compare commits

..

4 Commits

Author SHA1 Message Date
Leo
2af6e51a9a Merge e210fc21b6 into 422621c69c 2024-11-09 10:18:39 +01:00
Techno Tim
e210fc21b6 Merge branch 'master' into with-metal-lb-interface 2024-10-26 12:16:28 -07:00
Techno Tim
8e26ba8809 Merge branch 'master' into with-metal-lb-interface 2024-10-25 21:21:33 -07:00
Leo
754a379d42 feat(k3s): Add option to set MetalLB interfaces 2024-10-03 21:53:19 +02:00
3 changed files with 11 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
# #
# pip-compile requirements.in # pip-compile requirements.in
# #
ansible-compat==24.10.0 ansible-compat==4.1.11
# via molecule # via molecule
ansible-core==2.18.0 ansible-core==2.18.0
# via # via
@@ -73,11 +73,11 @@ markupsafe==2.1.4
# via jinja2 # via jinja2
mdurl==0.1.2 mdurl==0.1.2
# via markdown-it-py # via markdown-it-py
molecule==25.1.0 molecule==6.0.3
# via # via
# -r requirements.in # -r requirements.in
# molecule-plugins # molecule-plugins
molecule-plugins[vagrant]==23.7.0 molecule-plugins[vagrant]==23.5.3
# via -r requirements.in # via -r requirements.in
netaddr==0.10.1 netaddr==0.10.1
# via -r requirements.in # via -r requirements.in

View File

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

View File

@@ -21,6 +21,13 @@ kind: L2Advertisement
metadata: metadata:
name: default name: default
namespace: metallb-system namespace: metallb-system
{% if metal_lb_interfaces %}
spec:
interfaces:
{% for interface in metal_lb_interfaces %}
- {{ interface }}
{% endfor %}
{% endif %}
{% endif %} {% endif %}
{% if metal_lb_mode == "bgp" %} {% if metal_lb_mode == "bgp" %}
--- ---