InsightsPlatform Engineering
Kubernetes plans to remove the kube-proxy IPVS backend in 1.40
On 16 November 2026 SIG Network scheduled the removal of kube-proxy's ipvs mode for Kubernetes 1.40. What the post says, how nftables mode differs from what ipvs gave you, and how to move a cluster over safely.
Published November 18, 20265 min read
On 16 November 2026 the Kubernetes project published Scheduling the removal of the kube-proxy IPVS backend. SIG Network deprecated ipvs mode in Kubernetes 1.35. The backend still works and logs a deprecation warning, and the post now says the plan is to remove it in Kubernetes 1.40. The post tells every ipvs user to plan a move to either the nftables or the iptables backend.
If your clusters run kube-proxy in ipvs mode, this is the notice to put in the upgrade backlog. Nothing breaks today, but you now have a target version and a reason to act before it.
What the post says
The reasons given for retiring ipvs:
- Compatibility. The first version was not fully compatible with the
iptablesbackend, and it never implemented every edge case of Service behaviour. - Batch updates. The IPVS API has no batch operations. The backend is faster than
iptablesfor a few small changes, but can be slower when many change at once. - Fallback to iptables. The IPVS API is limited, so the
ipvsbackend still uses iptables for some Service features and inherits some of its scaling problems. - RHEL. Red Hat plans to remove the iptables API entirely from Red Hat Enterprise Linux, so the
ipvsbackend will also stop being available to Kubernetes users there.
The full timeline is tracked in KEP-5495. The post does not give a calendar date for 1.40, so work from the Kubernetes release schedule, not from this article.
What you lose and what you gain
ipvs | nftables | iptables | |
|---|---|---|---|
| Status | Deprecated since 1.35, removal planned for 1.40 | GA since 1.33 | Default in 1.37 |
| Backend selection | IPVS schedulers | Simple random selection | Simple random selection |
| Kernel | Not covered in the post | 5.13 or later | Not covered in the post |
The scheduler row matters most. If you chose ipvs for a particular IPVS scheduler, that does not carry over. The post explains why: kube-proxy on each node keeps its own IPVS scheduler state, and the processes do not share it, so most schedulers do not behave as people expect in a cluster. For the Maglev Hashing (mh) scheduler, it says kube-proxy does not have the architecture to act as either of the two layers in that design. If you need real load-aware balancing, do it in a layer built for it, such as a service mesh, a Gateway API implementation or the client, not in kube-proxy.
Which backend to pick
The post's recommendation is specific: if you run Kubernetes 1.36 or later, your nodes have kernel 5.13 or later, and you use ipvs, switch to nftables. It describes the backend as fully supported, feature-complete and very slightly faster than ipvs. It also notes that the performance and scaling fixes made after the GA release were not backported before 1.36, so an older cluster should upgrade before it moves.
Use iptables if you cannot meet those conditions, for example an older Kubernetes version or an older distribution. The post says that backend has improved since ipvs was introduced in 2017, with optimized rulesets, a faster resync and partial updates that touch only the changed Services and endpoints.
Differences to test before you switch
The virtual IPs documentation lists behaviour that changes with nftables mode. Three of them cause real incidents:
- NodePort addresses. In
iptablesmode, NodePort Services are reachable on all local IP addresses by default.nftablesmode defaults to--nodeport-addresses primary, so they answer only on the node's primary IPv4 and IPv6 addresses. If clients or load balancers reach NodePorts through a secondary address, set the option explicitly, for example--nodeport-addresses 0.0.0.0/0. - Localhost NodePorts. Connecting to a NodePort through
127.0.0.1does not work innftablesmode by default. Kubernetes 1.37 has an alphaKubeProxyNFTablesLocalhostNodePortsfeature gate, off by default, which together with--nodeport-addresses primary,localhostturns it on. To see whether anything depends on it today, read the kube-proxy metriciptables_localhost_nodeports_accepted_packets_total. If it is above zero, some client is using loopback. - Node firewalls. kube-proxy's
nftablesmode does not adjust a local firewall that is itself based on nftables. If you run one, make sure it allows Kubernetes traffic, including the NodePort range.
There is one more check for older kernels. The documentation says to look at iptables_ct_state_invalid_dropped_packets_total to see whether your cluster relies on kube-proxy's conntrack workaround for a bug in kernels before 6.1. The nftables mode does not install that workaround by default. If the metric is non-zero, run kube-proxy with --conntrack-tcp-be-liberal.
Moving a cluster
First find out what you run. On a kubeadm cluster the mode is in the kube-proxy ConfigMap:
kubectl -n kube-system get configmap kube-proxy -o yaml | grep -E '^\s+mode:'An empty value means kube-proxy uses its default. The documentation says the default is iptables in Kubernetes 1.37 and that a future version will change it to nftables. It advises setting the mode explicitly on every cluster so that an upgrade cannot change it for you. Managed services often hide this configuration, so check your provider's documentation for how it exposes the setting and its own plans for ipvs.
For a kubeadm cluster, the post's change is one line in the ConfigMap, followed by a restart of the kube-proxy pods:
# in the KubeProxyConfiguration inside the ConfigMap
mode: nftables # was: mode: ipvsIf you set ipvs-specific options, such as scheduler settings, replace them with the matching nftables options in the KubeProxyNFTablesConfiguration reference. Moving to iptables is the same edit, but for technical reasons the post recommends rebooting each node after the change, not only restarting kube-proxy.
A checklist before 1.40
- Inventory every cluster and record its kube-proxy mode, kernel version and Kubernetes version.
- Upgrade clusters older than 1.36 before you change the backend.
- Search for NodePort clients that use a secondary address or loopback, and for firewall rules on nodes.
- Check the two kube-proxy metrics above on a representative node.
- Switch a canary pool, compare Service latency and error rates, then roll out.
- Pin
modein your cluster configuration so a future default change does not surprise you.
If a cluster is stuck on RHEL with ipvs, treat it as higher priority: the post says the iptables API removal there ends the backend for those nodes regardless of the Kubernetes schedule.
Related reading: Moving from ingress-nginx to Gateway API covers another networking migration with a deadline, and Kubernetes cluster upgrades without drama covers sequencing the version bump that comes first.