Repository navigation
fix(discovery): accept multiple Cilium cluster-pool Pod CIDRs - #9
Merged
Merged
Conversation
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
force-pushed
the
fix/multi-pool-pod-cidr
branch
from
October 19, 2026 15:07
33ed4b1 to
d01a1bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.