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

19 lines
345 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 layer2 configuration
{% for entry in metallb_config.layer2 %}
# L2 Configuration
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: "{{ entry }}"
namespace: "{{ namespace_name }}"
spec:
ipAddressPools:
- "{{ entry }}"
{% endfor %}