2018-09-04 12:17:23 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
namespace: metallb-system
|
|
|
|
name: config
|
|
|
|
data:
|
|
|
|
config: |
|
|
|
|
address-pools:
|
|
|
|
- name: loadbalanced
|
2019-06-11 07:20:21 +00:00
|
|
|
protocol: {{ metallb.protocol }}
|
2018-09-04 12:17:23 +00:00
|
|
|
addresses:
|
|
|
|
- {{ metallb.ip_range }}
|
2019-06-11 07:20:21 +00:00
|
|
|
{% if metallb.additional_address_pools is defined %}{% for pool in metallb.additional_address_pools %}
|
|
|
|
- name: {{ pool }}
|
|
|
|
protocol: {{ metallb.additional_address_pools[pool].protocol }}
|
|
|
|
addresses:
|
|
|
|
- {{ metallb.additional_address_pools[pool].ip_range }}
|
|
|
|
auto-assign: {{ metallb.additional_address_pools[pool].auto_assign }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|