2018-09-04 20:17:23 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
namespace: metallb-system
|
|
|
|
name: config
|
|
|
|
data:
|
|
|
|
config: |
|
|
|
|
address-pools:
|
|
|
|
- name: loadbalanced
|
2019-06-11 15:20:21 +08:00
|
|
|
protocol: {{ metallb.protocol }}
|
2018-09-04 20:17:23 +08:00
|
|
|
addresses:
|
2020-04-27 14:55:28 +08:00
|
|
|
{% for ip_range in metallb.ip_range %}
|
|
|
|
- {{ ip_range }}
|
|
|
|
{% endfor %}
|
2019-06-11 15:20:21 +08: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:
|
2020-04-27 14:55:28 +08:00
|
|
|
{% for ip_range in metallb.additional_address_pools[pool].ip_range %}
|
|
|
|
- {{ ip_range }}
|
|
|
|
{% endfor %}
|
2019-06-11 15:20:21 +08:00
|
|
|
auto-assign: {{ metallb.additional_address_pools[pool].auto_assign }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|