c1 (Update): split the LB pool into pinned and dynamic ranges #1741

Merged
ginjiruu merged 1 commit from c1-lb-pool-split into main 2026-11-19 02:42:02 +00:00
Owner

Refs #1673 (plan comment). First of the DNS PRs. Do not merge until reviewed.

Replaces the single cilium-lb-pool (10.30.100.0/24 + fdd5:c8ef:2fa0💯:/64) with two non-overlapping range pools:

Pool v4 v6 Who draws
pinned .2-.63 ::2-::63 only Services labeled lbipam.animeteamspeak.moe/pool: pinned, each naming its address with lbipam.cilium.io/ips
dynamic .64-.254 ::64 onward every Service without that label (NotIn matches a missing label)

Why a label selects the pool: Cilium has no pool-name annotation. A pool's serviceSelector decides which Services may use it, and a requested IP is only granted if the Service matches that pool (LB-IPAM docs, "Requesting IPs").

What happens on apply

  • Flux creates pinned and dynamic, then prunes cilium-lb-pool (cilium-bgp has prune: true). For that moment the new pools overlap the old one and get marked Conflicting. Cilium's settleConflicts clears the mark once the overlap is gone (operator/pkg/lbipam/lbipam.go, v1.20.4, lines 1792-1816), so no manual step is needed.
  • The only LB Service on c1, gateway/cilium-gateway-cilium-default (10.30.100.1, ::1, no routes attached), loses its address with the old pool and gets a new one from dynamic (.64 or above). Nothing references .1.

Checked

  • Server-side dry-run on c1: both pools accepted by the CRD schema.
  • task release:check CLUSTER=c1 CONTEXT=c1: gate OK, transition render OK.

After merge I'll verify: both pools Ready and not Conflicting, the old pool gone, the gateway on a .64+ address and still answering 404 from the workstation over BGP.

Refs #1673 (plan comment). First of the DNS PRs. **Do not merge until reviewed.** Replaces the single `cilium-lb-pool` (10.30.100.0/24 + fdd5:c8ef:2fa0:100::/64) with two non-overlapping range pools: | Pool | v4 | v6 | Who draws | |---|---|---|---| | `pinned` | .2-.63 | ::2-::63 | only Services labeled `lbipam.animeteamspeak.moe/pool: pinned`, each naming its address with `lbipam.cilium.io/ips` | | `dynamic` | .64-.254 | ::64 onward | every Service without that label (`NotIn` matches a missing label) | Why a label selects the pool: Cilium has no pool-name annotation. A pool's `serviceSelector` decides which Services may use it, and a requested IP is only granted if the Service matches that pool (LB-IPAM docs, "Requesting IPs"). **What happens on apply** - Flux creates `pinned` and `dynamic`, then prunes `cilium-lb-pool` (`cilium-bgp` has `prune: true`). For that moment the new pools overlap the old one and get marked Conflicting. Cilium's `settleConflicts` clears the mark once the overlap is gone (operator/pkg/lbipam/lbipam.go, v1.20.4, lines 1792-1816), so no manual step is needed. - The only LB Service on c1, `gateway/cilium-gateway-cilium-default` (10.30.100.1, ::1, no routes attached), loses its address with the old pool and gets a new one from `dynamic` (.64 or above). Nothing references .1. **Checked** - Server-side dry-run on c1: both pools accepted by the CRD schema. - `task release:check CLUSTER=c1 CONTEXT=c1`: gate OK, transition render OK. **After merge I'll verify:** both pools Ready and not Conflicting, the old pool gone, the gateway on a .64+ address and still answering 404 from the workstation over BGP.
Two CiliumLoadBalancerIPPools over 10.30.100.0/24 and
fdd5:c8ef:2fa0💯:/64 (lab/clusters#1673): pinned .2-.63/::2-::63,
selected by the label lbipam.animeteamspeak.moe/pool=pinned, for
addresses clients are configured with (DNS resolvers); dynamic
.64-.254/::64 onward for everything else. Labels select pools (Cilium has
no pool annotation), so no unlabeled Service can take a pinned address.
Sign in to join this conversation.
No description provided.