Update: add Cilium LB IP Pool configuration to support ranges (#12140)

This commit is contained in:
Cheolhui Kim
2025-05-12 17:39:18 +09:00
committed by GitHub
parent 43e19ab281
commit fceb1516b8
3 changed files with 13 additions and 1 deletions

View File

@@ -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/)

View File

@@ -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:

View File

@@ -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 %}