Hey folks! We're looking into transitioning to Cilium as our CNI without kube-proxy, specifically using IPAM in "cluster-pool" mode due to limited IPv4 addresses in our company network. Essentially, we want nodes to have VPC-routable IPs while having Pods routed via the Cilium agent on an overlay network to help with IP consumption.
So far, it's been going fairly well, but we're running into a challenge. Since the EKS managed control plane doesn't detect the Pod Network, we need to expose any services that use webhook callbacks (like admission and mutation webhooks) through the hostNetwork of the node. This is especially important for deployments across the entire cluster such as the aws-lb-controller, kyverno, and cert-manager.
We figured once we sorted the port mappings on the nodes, we'd be set, but it's become pretty complicated. There are more services than we anticipated, and we had to adjust various container ports (metrics, probes, etc.), which isn't straightforward as many Helm charts don't let you change these parameters easily. We've had to do some post-rendering tweaks to make things work.
Now we've found out that tools like Crossplane come with their own webhooks for each provider, and we're starting to question if all the hassle with hostNetwork is worth it. I'm curious if anyone has navigated this route with Cilium and can share their experiences, especially if you've taken it to production!
2 Answers
Yeah, instead of "cluster-pool," I opted for ENI with prefix delegation. This way, you don't have to worry about the pod network since it’s part of the VPC. I had to migrate all services back from host network for similar reasons, as it became too complex. Plus, some apps didn't even support host network in their official Helm charts. I'm also using IPv4 masquerading and turned off host ports in Cilium.
Have you thought about trying IPv6 with native routing mode? If you do that, Pods will be routable in the VPC, and you'll just use the IPv4 node IP for routing to IPv4 DC services. This might simplify some of your issues.
Related Questions
Sports Team Randomizer
10 Uses For An Old Smartphone
Midjourney Launches An Exciting New Feature for Their Image AI
ShortlyAI Review
Is Copytrack A Scam?
Getting 100 on Pagespeed Insights for Mobile is Impossible