You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
701 B

  1. ---
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. namespace: metallb-system
  6. name: config
  7. data:
  8. config: |
  9. address-pools:
  10. - name: loadbalanced
  11. protocol: {{ metallb.protocol }}
  12. addresses:
  13. {% for ip_range in metallb.ip_range %}
  14. - {{ ip_range }}
  15. {% endfor %}
  16. {% if metallb.additional_address_pools is defined %}{% for pool in metallb.additional_address_pools %}
  17. - name: {{ pool }}
  18. protocol: {{ metallb.additional_address_pools[pool].protocol }}
  19. addresses:
  20. {% for ip_range in metallb.additional_address_pools[pool].ip_range %}
  21. - {{ ip_range }}
  22. {% endfor %}
  23. auto-assign: {{ metallb.additional_address_pools[pool].auto_assign }}
  24. {% endfor %}
  25. {% endif %}