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.

21 lines
613 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. - {{ metallb.ip_range }}
  14. {% if metallb.additional_address_pools is defined %}{% for pool in metallb.additional_address_pools %}
  15. - name: {{ pool }}
  16. protocol: {{ metallb.additional_address_pools[pool].protocol }}
  17. addresses:
  18. - {{ metallb.additional_address_pools[pool].ip_range }}
  19. auto-assign: {{ metallb.additional_address_pools[pool].auto_assign }}
  20. {% endfor %}
  21. {% endif %}