Skip to content

fix(discovery): accept multiple Cilium cluster-pool Pod CIDRs - #9

Merged
zijiren233 merged 1 commit into
labring-sigs:mainfrom
zijiren233:fix/multi-pool-pod-cidr
Oct 19, 2026
Merged

zijiren233 merged 1 commit into
labring-sigs:mainfrom
zijiren233:fix/multi-pool-pod-cidr

Conversation

@zijiren233

Copy link
Copy Markdown
Collaborator

Cilium stores every cluster-pool IPv4 CIDR in a single space-separated cilium-config value (cluster-pool-ipv4-cidr). The resolver required exactly one CIDR, so multi-pool clusters silently fell back to the kubeadm podSubnet, which often no longer matches the Cilium pools. Every worker then failed validation (PodCIDR outside allowed CIDR) and no routes were programmed.

Parse comma- or whitespace-separated CIDR lists everywhere the Pod CIDR is configured: Cilium and kubeadm discovery, --pod-cidr, and the config file. A worker is now accepted when its PodCIDR falls inside any configured pool, and per-pool overlap checks against the Service and router CIDRs replace the single-prefix checks.

Verified against a live cluster in dry-run mode: multi-pool value resolves, and desired routes for both pod CIDR pools plus the service CIDR are planned correctly.

Cilium stores every cluster-pool IPv4 CIDR in a single space-separated
cilium-config value (cluster-pool-ipv4-cidr). The resolver required
exactly one CIDR, so multi-pool clusters silently fell back to the
kubeadm podSubnet, which often no longer matches the Cilium pools.
Every worker then failed validation (PodCIDR outside allowed CIDR) and
no routes were programmed.

Parse comma- or whitespace-separated CIDR lists everywhere the Pod CIDR
is configured: Cilium and kubeadm discovery, --pod-cidr, and the config
file. A worker is now accepted when its PodCIDR falls inside any
configured pool, and per-pool overlap checks against the Service and
router CIDRs replace the single-prefix checks.
@zijiren233
zijiren233 force-pushed the fix/multi-pool-pod-cidr branch from 33ed4b1 to d01a1bd Compare October 19, 2026 15:07
@zijiren233
zijiren233 merged commit 4499199 into labring-sigs:main Oct 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant