cilium / cilium-cli

CLI to install, manage & troubleshoot Kubernetes clusters running Cilium
https://cilium.io
Apache License 2.0
430 stars 209 forks source link

cilium does not respect k8s pod cidr #2839

Open korncola opened 3 weeks ago

korncola commented 3 weeks ago

cilium install does NOT respect k8s pod CIDR that was used to during cluster creation, instead it sits itself with 10.0.0.0/8 in the way of everything and breaks connectivity of the node as it creates routes on the nodes.

quote from installation docs: It will automatically detect and use the best configuration possible for the Kubernetes distribution you are using.

One should safely assume this would mean the k8s pod CIDR is detected.

Ways to resolve:

joestringer commented 1 week ago

Hi @korncola, thanks for the feedback. Could you share which Kubernetes distribution you're using? It's possible that the autodetection just didn't properly take into account the configuration from that environment. Hopefully it's a relatively small change to fix that up and improve the experience for all users going forward.