mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Update MetalLB and switch to CRD notation. (#9120)
Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
This commit is contained in:
22
roles/kubernetes-apps/metallb/templates/pools.yaml.j2
Normal file
22
roles/kubernetes-apps/metallb/templates/pools.yaml.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
||||
# yamllint disable-file
|
||||
---
|
||||
|
||||
# Create all pools
|
||||
{% for pool_name, pool in metallb_config.address_pools.items() %}
|
||||
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
namespace: metallb-system
|
||||
name: "{{ pool_name }}"
|
||||
spec:
|
||||
addresses:
|
||||
{% for ip_range in pool.ip_range %}
|
||||
- "{{ ip_range }}"
|
||||
{% endfor %}
|
||||
autoAssign: {{ pool.auto_assign }}
|
||||
avoidBuggyIPs: true
|
||||
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user