Search
moon
sun

Why Can’t My Running Pods Be Reached? Our Journey to kube-proxy nftables Mode

URL
생성 일시
2026/11/24 10:01
최종 편집 일시
2026/11/24 10:01
태그
당근
파일과 미디어
Hi, I’m Karin, and I’m on the Cluster squad within SRE at Karrot. Our team designs and runs the Kubernetes platform that every service at Karrot runs on. We take responsibility for everything that keeps our clusters observable and reliable, from monitoring infrastructure all the way to the service mesh and security, along with the policies and roadmaps that keep it all maintainable. In this post, I’ll share how we migrated kube-proxy from iptables mode to nftables mode. kube-proxy runs on every node in a Kubernetes cluster and programs network rules into the Linux kernel so that traffic sent to a Service reaches the actual Pods. For years, our clusters ran kube-proxy in iptables mode to provide this core feature. Below, I’ll walk through how we moved to nftables, its more efficient successor, and what we learned along the way. 1. kube-proxy latency was hurting service reliability In Kubernetes, nodes come and go and Pods spin up all the time. That’s just how it works. But when a Pod lands on a fresh node and the app starts up, is it actually ready to talk to other services? kube-proxy manages the network rules (just “rules” from here on) on each node that let traffic headed for a Service reach the actual Pods. On a new node, if an application starts up while those rules are still being prepared, its DNS lookups and calls to other services can fail. kube-proxy rule sync lag had been creeping up for a while. We’d been watching the metrics since 2024, and latency was noticeably higher in our production cluster in the Korea region, the largest of all the regions we serve. But we judged it wasn’t serious enough to cause operational problems, and in practice, it never actually turned into an incident. Then, in the first half of this year, we made a big change: we adopted Karpenter. Now that we could scale out nodes quickly, we stopped using the Overprovisioner that used to