mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Update: add Cilium LB IP Pool configuration to support ranges (#12140)
This commit is contained in:
@@ -54,6 +54,10 @@ cilium_loadbalancer_ip_pools:
|
||||
- name: "blue-pool"
|
||||
cidrs:
|
||||
- "10.0.10.0/24"
|
||||
ranges:
|
||||
- start: "20.0.20.100"
|
||||
stop: "20.0.20.200"
|
||||
- start: "1.2.3.4"
|
||||
```
|
||||
|
||||
For further information, check [LB IPAM documentation](https://docs.cilium.io/en/stable/network/lb-ipam/)
|
||||
|
||||
@@ -253,6 +253,10 @@ cilium_l2announcements: false
|
||||
# - name: "blue-pool"
|
||||
# cidrs:
|
||||
# - "10.0.10.0/24"
|
||||
# ranges:
|
||||
# - start: "20.0.20.100"
|
||||
# stop: "20.0.20.200"
|
||||
# - start: "1.2.3.4"
|
||||
|
||||
# -- Configure BGP Instances (New bgpv2 API v1.16+)
|
||||
# cilium_bgp_cluster_configs:
|
||||
|
||||
@@ -6,7 +6,11 @@ metadata:
|
||||
name: "{{ cilium_loadbalancer_ip_pool.name }}"
|
||||
spec:
|
||||
blocks:
|
||||
{% for cblock in cilium_loadbalancer_ip_pool.cidrs %}
|
||||
{% for cblock in cilium_loadbalancer_ip_pool.cidrs | default([]) %}
|
||||
- cidr: "{{ cblock }}"
|
||||
{% endfor %}
|
||||
{% for rblock in cilium_loadbalancer_ip_pool.ranges | default([]) %}
|
||||
- start: "{{ rblock.start }}"
|
||||
stop: "{{ rblock.stop | default(rblock.start) }}"
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user