c12s-kubespray/roles/kubernetes-apps/metallb/templates/pools.yaml.j2

23 lines
452 B
Text
Raw Normal View History

2022-07-27 08:47:28 +00:00
#jinja2: trim_blocks: True, lstrip_blocks: True
# yamllint disable-file
---
# Create all pools
{% for pool_name, pool in metallb_config.address_pools.items() %}
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
namespace: "{{ namespace_name }}"
name: "{{ pool_name }}"
spec:
{% for ip_range in pool.ip_range %}
addresses:
- "{{ ip_range }}"
{% endfor %}
2022-09-06 14:52:34 +00:00
autoAssign: {{ pool.auto_assign }}
2022-07-27 08:47:28 +00:00
avoidBuggyIPs: true
{% endfor %}