A kube-proxy IPVS to nftables migration is now on the roadmap of every cluster that chose IPVS for performance. Since Kubernetes v1.35, kube-proxy logs a deprecation warning at startup in IPVS mode, and the upstream plan ends with IPVS refusing to start by default in v1.40.
The good news is that nftables mode has been GA since v1.33. It delivers the scalability that made teams pick IPVS in the first place, using a single modern kernel API that SIG Network actively maintains.
This guide explains the deprecation timeline, the behaviour differences that catch people out, and a safe kube-proxy IPVS to nftables migration for kubeadm, k3s, RKE2, Amazon EKS and Calico clusters.
Table of Contents
- Technical Overview & Background
- Core System Prerequisites
- Step-by-Step kube-proxy IPVS to nftables Migration
- Architecture & Component Breakdown
- Real-World Use Cases & Enterprise Examples
- Troubleshooting, Edge Cases & Best Practices
- FAQ
- Summary & Key Takeaways
Technical Overview & Background
kube-proxy runs on every node and turns Kubernetes Services into packet-forwarding rules. When a pod connects to a ClusterIP, kube-proxy’s rules rewrite the destination to one of the Service’s endpoints.
kube-proxy supports several proxy modes on Linux. Each one programs a different kernel subsystem.
Three backends, three generations
- iptables mode (default): Programs long chains of iptables rules. Matching is roughly O(n) in the number of Services, and every update rewrites large parts of the ruleset. It struggles with tens of thousands of Services.
- IPVS mode: Uses the kernel’s IP Virtual Server load balancer with hash tables, giving roughly O(1) lookups. It also offers schedulers such as round robin and least connections. It became popular for large clusters around 2018.
- nftables mode: Uses the newer nftables API with verdict maps, giving near-constant lookup time and incremental updates. It was designed to replace both iptables and IPVS.
Why IPVS is being deprecated
KEP-5495 explains the reasoning plainly. SIG Network no longer has maintainers who know the IPVS code well, and users who report IPVS bugs are already being steered to nftables. Keeping two “fast” backends alive splits limited maintenance effort.
The project also considered moving IPVS to a separate repository. Nobody committed to maintaining it or handling its security fixes, so deprecation was the responsible choice.
The official timeline
| Kubernetes version | What happens |
|---|---|
| v1.29 | nftables mode arrives as alpha |
| v1.31 | nftables mode reaches beta |
| v1.33 | nftables mode is GA |
| v1.35 | IPVS mode deprecated; kube-proxy logs a warning at startup |
| v1.37 | KubeProxyIPVS feature gate added (on by default) with clearer warnings |
| v1.40 | Gate defaults to off; kube-proxy in IPVS mode exits with an error unless overridden. nftables is planned to become the default mode (KEP-5343) |
| v1.43 | IPVS can no longer be enabled; the IPVS code is removed |
The startup warning in v1.35 and later reads: “The ipvs proxier is now deprecated and may be removed in a future release. Please use ‘nftables’ instead.”
You still have time. But every release you stay on IPVS means less upstream testing and fewer fixes for your data plane.
Core System Prerequisites
Check these before you start a kube-proxy IPVS to nftables migration:
- Linux kernel 5.13 or later on every node, with nftables support compiled in. Amazon Linux 2023, Ubuntu 22.04+, RHEL 9 and Debian 12 all qualify.
- Kubernetes v1.33 or later for the GA implementation. Upstream backported nftables fixes to 1.33 and 1.34.
- kube-proxy v1.36 or later is strongly preferred. AWS notes that v1.36.0 significantly reduced the number of nftables chains and jump rules, which matters at large scale.
- A compatible CNI. Check your plugin’s documentation. For example, the Amazon VPC CNI supports nftables mode from v1.23.0, and Calico has an nftables data plane from v3.30.
- The
nftcommand-line tool on nodes for verification and debugging. - A maintenance window. Switching proxy modes briefly disrupts Service routing on each node as rules are rebuilt.
Confirm the kernel version across the cluster:
kubectl get nodes -o custom-columns=\
NAME:.metadata.name,\
KERNEL:.status.nodeInfo.kernelVersion,\
KUBEPROXY:.status.nodeInfo.kubeProxyVersion
Step-by-Step kube-proxy IPVS to nftables Migration
This kube-proxy IPVS to nftables workflow assumes kube-proxy runs as a DaemonSet configured by a ConfigMap, which is the kubeadm default.
Plan the migration window
A kube-proxy IPVS to nftables migration changes how every Service packet is routed, so treat it like any other data-plane change:
- Pick a low-traffic window and announce it to application owners.
- Migrate one node pool at a time, starting with stateless workloads.
- Prepare dashboards in advance: Service error rates, DNS latency and kube-proxy sync duration (
kubeproxy_sync_proxy_rules_duration_seconds). - Agree rollback criteria before you start, such as a sustained rise in 5xx responses or DNS failures.
- Keep a written runbook with the exact commands below, so the on-call engineer can finish or reverse the change.
Step 1: Confirm the current proxy mode
Check the logs first:
kubectl -n kube-system logs daemonset/kube-proxy | grep -iE "ipvs|proxier|deprecated"
# Using ipvs Proxier
# The ipvs proxier is now deprecated and may be removed in a future release...
Then confirm on the node itself, where the IPVS dummy interface and virtual servers are visible:
ip -brief link show kube-ipvs0
sudo ipvsadm -Ln | head -20
kube-proxy also reports its mode on its metrics port:
curl -s http://127.0.0.1:10249/proxyMode
# ipvs
Step 2: Audit IPVS-specific settings
IPVS has features that nftables does not reproduce, and this is where most kube-proxy IPVS to nftables surprises come from. Inspect your config before you lose them:
kubectl -n kube-system get configmap kube-proxy -o jsonpath='{.data.config\.conf}' \
| grep -A12 '^ipvs:'
Look for these settings in particular:
schedulersuch aslc(least connection) orsh(source hashing). nftables mode picks endpoints randomly, much like iptables mode.strictARP: true, often set for MetalLB in Layer 2 mode. It is an IPVS-only setting and becomes unnecessary.tcpTimeout,tcpFinTimeout,udpTimeouttuning for long-lived connections. These are IPVS-specific; conntrack settings apply instead.
If an application depends on least-connection balancing, solve it at the application layer, in a service mesh, or with Gateway API before migrating.
Step 3: Check NodePort and localhost dependencies
This is the most common functional difference. nftables mode does not accept NodePort connections on 127.0.0.1, and by default it only listens on the node’s primary IP addresses instead of every interface.
Find anything that relies on localhost NodePorts:
# Services exposed via NodePort
kubectl get svc -A -o jsonpath='{range .items[?(@.spec.type=="NodePort")]}{.metadata.namespace}/{.metadata.name}{"\t"}{.spec.ports[*].nodePort}{"\n"}{end}'
# Host-level configs that call localhost:<nodePort> (health checks, local proxies)
sudo grep -rnE "127\.0\.0\.1:3[0-2][0-9]{3}|localhost:3[0-2][0-9]{3}" /etc 2>/dev/null
If you need NodePorts on extra interfaces, set nodePortAddresses explicitly to the CIDRs you want. A planned enhancement (KEP-6032) aims to add localhost NodePort support for nftables, but do not build on it yet.
Step 4: Update the kube-proxy configuration
Edit the ConfigMap and change the mode:
kubectl -n kube-system edit configmap kube-proxy
The relevant part of config.conf should look like this afterwards:
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "nftables"
nftables:
masqueradeAll: false
masqueradeBit: 14
minSyncPeriod: 1s
syncPeriod: 30s
nodePortAddresses: null # nftables default: primary node IPs only
metricsBindAddress: 0.0.0.0:10249
Remove the now-irrelevant ipvs: block, or leave it empty, so nobody mistakes it for live configuration.
On k3s or RKE2, set the proxy mode through the server and agent configuration instead:
# /etc/rancher/k3s/config.yaml (or /etc/rancher/rke2/config.yaml)
kube-proxy-arg:
- "proxy-mode=nftables"
Step 5: Roll kube-proxy one node at a time
A plain rollout restart replaces pods according to the DaemonSet update strategy. Make that strategy conservative first:
kubectl -n kube-system patch daemonset kube-proxy --type merge \
-p '{"spec":{"updateStrategy":{"type":"RollingUpdate","rollingUpdate":{"maxUnavailable":1}}}}'
kubectl -n kube-system rollout restart daemonset/kube-proxy
kubectl -n kube-system rollout status daemonset/kube-proxy --timeout=20m
For extra safety, cordon and drain each node before its kube-proxy pod restarts. That way no live traffic is in flight while rules switch over.
Step 6: Verify the nftables rules
On a migrated node, confirm the new mode and inspect the ruleset:
curl -s http://127.0.0.1:10249/proxyMode
# nftables
sudo nft list tables | grep kube-proxy
# table ip kube-proxy
# table ip6 kube-proxy
sudo nft list map ip kube-proxy service-ips | head -20
The service-ips verdict map is the heart of the data plane. Each ClusterIP and port maps directly to a per-Service chain.
Step 7: Clean up IPVS leftovers
kube-proxy attempts to remove rules from other modes when it starts, but verify it rather than assume:
sudo ipvsadm -Ln | wc -l # should list no virtual servers
ip link show kube-ipvs0 2>/dev/null && echo "kube-ipvs0 still present"
If leftovers remain, clear them during the node’s maintenance window, or simply reboot the node:
sudo ipvsadm --clear
sudo ip link delete kube-ipvs0
Stale IPVS virtual servers can keep answering for old ClusterIPs, which produces confusing intermittent failures.
Step 8: Run a connectivity smoke test
A small Python script inside a test pod proves ClusterIP, DNS and Service routing still work:
#!/usr/bin/env python3
"""svc_smoke.py - verify DNS and TCP reachability for a list of Services."""
import socket
import sys
import time
TARGETS = [
("kubernetes.default.svc.cluster.local", 443),
("kube-dns.kube-system.svc.cluster.local", 53),
] + [(t.split(":")[0], int(t.split(":")[1])) for t in sys.argv[1:]]
failed = 0
for host, port in TARGETS:
start = time.monotonic()
try:
ip = socket.gethostbyname(host)
with socket.create_connection((ip, port), timeout=3):
ms = (time.monotonic() - start) * 1000
print(f"OK {host}:{port} -> {ip} ({ms:.1f} ms)")
except OSError as exc:
failed += 1
print(f"FAIL {host}:{port} ({exc})")
sys.exit(1 if failed else 0)
Run it from a pod on each migrated node, passing your critical Services as name.namespace.svc:port arguments.
Step 9: Managed clusters and CNI-specific paths
On Amazon EKS (Kubernetes 1.33+), set the mode through the managed add-on:
aws eks update-addon --cluster-name "$CLUSTER_NAME" --addon-name kube-proxy \
--configuration-values '{"mode": "nftables"}' \
--resolve-conflicts OVERWRITE
Then restart the kube-proxy DaemonSet so existing nodes pick up the change.
On Calico clusters running in IPVS mode, switch Calico’s data plane as well, after kube-proxy:
kubectl patch installation default --type=merge \
-p '{"spec":{"calicoNetwork":{"linuxDataplane":"Nftables"}}}'
kubectl -n calico-system logs daemonset/calico-node | grep -i nftables
The Tigera operator rolls calico-node automatically.
Architecture & Component Breakdown
How nftables mode routes a Service packet
- A pod sends a packet to a ClusterIP:port.
- The packet hits kube-proxy’s chains in the
ip kube-proxytable at the prerouting or output hook. - A single lookup in the
service-ipsverdict map jumps to that Service’s chain. - The Service chain picks an endpoint with a random numgen expression and jumps to an endpoint chain.
- The endpoint chain applies DNAT to the pod IP, and masquerade marks are set where needed.
- conntrack remembers the translation, so the rest of the flow skips the lookup entirely.

Comparing the three proxy modes
| Characteristic | iptables | IPVS | nftables |
|---|---|---|---|
| Service lookup | Linear chain walk, ~O(n) | Hash table, ~O(1) | Verdict map, ~O(1) |
| Rule updates | Large rewrites | Incremental | Incremental (transactions) |
| Load-balancing algorithm | Random | rr, lc, sh and others | Random |
| Localhost NodePorts | Supported | Supported | Not supported |
| Dummy interface on node | No | kube-ipvs0 | No |
| Upstream status (2026) | Default, maintained | Deprecated (v1.35) | GA, planned default (v1.40) |
| Kernel requirement | Any supported | IPVS modules | 5.13+ |
Why nftables scales better than iptables
iptables evaluates rules one after another. With 10,000 Services, the first packet of a new connection can walk thousands of rules. Every Service change also forces kube-proxy to rewrite much of the table.
nftables replaces the walk with a map lookup and applies changes as atomic transactions. Latency stays nearly flat as the cluster grows, and rule syncs touch only what changed. AWS recommends nftables mode for clusters with more than 1,000 Services.
Why it is easier to run than IPVS
IPVS mode was a hybrid. It still needed iptables for masquerading and filtering, plus ipset, plus the kube-ipvs0 interface holding every ClusterIP. That combination produced many of the IPVS bugs that now go unmaintained.
nftables mode uses one API and one set of tables, owned entirely by kube-proxy, which makes debugging with nft list far simpler.
Real-World Use Cases & Enterprise Examples
Scenario 1: Large multi-tenant kubeadm cluster
A platform team runs a 300-node kubeadm cluster with about 8,000 Services. They moved to IPVS in 2020 because iptables syncs were taking minutes.
Their kube-proxy IPVS to nftables plan: upgrade kube-proxy to v1.36, confirm kernels are 6.x, migrate one node pool per day with drains, and keep a short rollback window. They remove strictARP once MetalLB is confirmed to work in the new mode.
Scenario 2: Bare-metal cluster with MetalLB
MetalLB in Layer 2 mode needed strictARP: true because the kube-ipvs0 interface answered ARP for every Service IP. Without IPVS, that interface disappears.
After the change, they verify that LoadBalancer IPs still answer from exactly one node, using arping from another host on the same VLAN.
Scenario 3: Node-local agents using localhost NodePorts
A logging stack shipped node logs to 127.0.0.1:30514, a NodePort Service. In nftables mode, that connection fails.
The fix is to point the agent at the Service’s ClusterIP DNS name, or to use internalTrafficPolicy: Local so traffic stays on the node without depending on NodePorts.
Scenario 4: EKS clusters at scale
A SaaS team on EKS 1.36 with 1,500 Services uses the managed add-on setting. They apply it to a staging cluster, run load tests, confirm the VPC CNI version is 1.23.0+, then roll production during a low-traffic window.
Troubleshooting, Edge Cases & Best Practices
Common errors and fixes
kube-proxy crash-loops with an nftables error
The kernel is too old or lacks nftables support. Check uname -r and lsmod | grep nf_tables. Upgrade or replace the node image; do not try to force the mode.
Services work from pods but NodePorts fail from outside
Check nodePortAddresses. The nftables default accepts NodePorts only on primary node IPs. Add the CIDRs of secondary interfaces explicitly if you need them.
Intermittent connections to old ClusterIPs
IPVS leftovers are still present. Run ipvsadm -Ln and remove stale virtual servers and the kube-ipvs0 interface, or reboot the node.
Slow rule syncs or CPU soft lockups at very large scale
This affected kube-proxy releases before v1.36.0 with hundreds of thousands of endpoints, made worse by older kernels. Upgrade kube-proxy and use a recent kernel.
Uneven load across endpoints after migration
You lost the IPVS lc or sh scheduler. nftables picks endpoints randomly. Use session affinity, a service mesh, or application-level balancing where it matters.
Rollback plan
Rolling back a kube-proxy IPVS to nftables change is a configuration change, so keep it simple:
- Set
mode: "ipvs"back in the ConfigMap (still possible until v1.40 without feature-gate overrides). - Restart the kube-proxy DaemonSet one node at a time.
- Verify with
curl -s http://127.0.0.1:10249/proxyModeandipvsadm -Ln.
Treat rollback as a short-term measure while you fix the root cause, not a permanent state.
kube-proxy IPVS to nftables best practices
- Upgrade kube-proxy to v1.36+ first, then change the mode as a separate step.
- Migrate staging, then one node pool at a time, with drains before each restart.
- Inventory IPVS-only features (schedulers,
strictARP, timeouts) before you lose them. - Search for localhost NodePort usage, the most common source of surprises.
- Set the mode explicitly in Git. The default will change in v1.40, so never rely on it.
- Verify cleanup of
kube-ipvs0and IPVS virtual servers on every node. - Consider eBPF-based Service handling (such as Cilium or Calico eBPF) only as a separate, deliberate project.
FAQ
Is kube-proxy IPVS mode deprecated?
Yes. IPVS mode was deprecated in Kubernetes v1.35 under KEP-5495, and kube-proxy now logs a warning at startup. The plan adds a KubeProxyIPVS feature gate in v1.37, turns it off by default in v1.40, and removes the IPVS code in v1.43.
What should I replace kube-proxy IPVS mode with?
The recommended replacement is nftables mode, which has been GA since Kubernetes v1.33 and offers similar scalability to IPVS. iptables mode remains supported, and some teams instead adopt an eBPF data plane such as Cilium or Calico eBPF as a separate project.
What are the requirements for kube-proxy nftables mode?
Every node needs Linux kernel 5.13 or later with nftables support, Kubernetes v1.33 or later, and a CNI plugin that supports nftables mode. kube-proxy v1.36 or later is recommended for large clusters because it greatly reduces the number of nftables chains.
Does nftables mode support NodePort on localhost?
No. kube-proxy nftables mode does not accept NodePort connections on 127.0.0.1, and by default it only accepts NodePorts on the node’s primary IP addresses. Point local agents at the Service ClusterIP or set nodePortAddresses explicitly.
How do I check which mode kube-proxy is using?
Run curl http://127.0.0.1:10249/proxyMode on a node, which returns iptables, ipvs or nftables. You can also search the kube-proxy logs for ‘Using ipvs Proxier’ or list the kube-proxy tables with nft list tables.
Summary & Key Takeaways
- IPVS mode in kube-proxy is deprecated since v1.35, and kube-proxy is planned to refuse IPVS by default in v1.40.
- nftables mode is GA since v1.33 and is the recommended replacement; it is planned to become the default in v1.40.
- Requirements: Linux kernel 5.13+, a compatible CNI, and ideally kube-proxy v1.36+.
- Key differences: no localhost NodePorts, NodePorts on primary IPs only by default, and random endpoint selection instead of IPVS schedulers.
- Migration is a config change: set
mode: "nftables", roll kube-proxy node by node, verify withnft list, and clean upkube-ipvs0. - Set the proxy mode explicitly in version control before upstream defaults change.
A kube-proxy IPVS to nftables migration is one of the lowest-risk upgrades on the 2026 Kubernetes roadmap, provided you audit the few IPVS-specific behaviours first. Do it now, while rollback is still a one-line change.
If you are preparing nodes for newer Kubernetes releases, pair this with our Kubernetes cgroup v2 migration guide and the containerd 2.0 migration guide.
Editorial note: Timelines come from KEP-5495 (Deprecate IPVS mode in kube-proxy) and KEP-5343 (Make nftables the default). EKS settings, kernel and VPC CNI requirements follow the Amazon EKS nftables best-practices guide. Calico steps follow Tigera’s IPVS to nftables migration guide. Planned future releases can change, so check current release notes before upgrading.
