# Kubernetes Sets an End Date for kube-proxy IPVS

- Link: https://thestackobserver.com/kubernetes-sets-an-end-date-for-kube-proxy-ipvs/
- Published: 2026-11-24T14:01:07-05:00
- Author: Stackxx

Kubernetes has put a deadline on one of kube-proxy’s most recognizable performance
options. SIG Network now plans to disable the IPVS backend by default in Kubernetes
1.40, the project announced on November 16, after deprecating the mode in version
1.35. The associated enhancement proposal extends the retirement in stages: the 
backend is expected to become unavailable by default in 1.40, be locked off and 
removed from the tree in 1.43, and lose its feature gate in 1.46.

That timetable changes the status of IPVS from a configuration preference to a migration
liability. Operators who still select `mode: ipvs` should not wait for an upgrade
to fail. They need to identify where the mode is used, prove that nftables works
with their kernels and network integrations, and rehearse a rollback while IPVS 
remains available.

The important point is not simply that an old backend is disappearing. Kubernetes
is consolidating around a service-proxy implementation that better matches the Services
API and can scale without the architectural compromises that accumulated around 
IPVS. For most modern Linux clusters, nftables is now the intended destination.

## Why Kubernetes is retiring IPVS

IPVS entered kube-proxy to solve genuine scaling failures. The older iptables implementation
created rules that grew with the number of Services and endpoints. A new connection
could have to traverse a long sequence of rules, while a small control-plane change
could force kube-proxy to rebuild a large ruleset. In sufficiently large clusters,
synchronization consumed substantial CPU and made Service updates slow.

The Linux IPVS subsystem improved the data path by using hash tables, and kube-proxy’s
IPVS backend avoided rewriting the complete ruleset for every small change. That
made it attractive to operators running large clusters. But speed did not eliminate
a deeper mismatch: the kernel IPVS API is a load-balancing interface, whereas Kubernetes
Services have semantics that reach beyond basic load distribution.

According to SIG Network, the backend never implemented every Service edge case 
correctly. It also had to fall back to iptables for some behavior, retaining part
of the dependency it was supposed to escape. The IPVS API lacks batch operations,
so large sets of simultaneous changes can perform worse than a few incremental updates.
The implementation is also structurally different from kube-proxy’s other Linux 
backends, increasing its maintenance burden at a time when the project says it lacks
maintainers familiar with that code.

The alternative IPVS schedulers do not rescue the case for keeping it. kube-proxy
runs independently on every node, and those instances do not share scheduler state.
An algorithm that looks sophisticated on one node cannot see cluster-wide connection
state, limiting its ability to balance traffic more intelligently across the whole
cluster. The feature’s theoretical advantage therefore does not map cleanly onto
kube-proxy’s distributed architecture.

## Why nftables is the preferred successor

Kubernetes introduced nftables mode as an alpha feature in version 1.29 and promoted
it to general availability in 1.33. Rather than walking a linear chain containing
a rule for every Service address, nftables can use maps to look up a tuple such 
as destination address, protocol, and port. That keeps packet lookup approximately
constant as the number of Services grows.

The control-plane difference is equally important. nftables allows kube-proxy to
send updates proportional to what changed instead of the total size of the ruleset.
Its private tables also avoid the global lock contention associated with iptables.
The Kubernetes project’s published measurements show nftables delivering first-packet
latency comparable to, and slightly better than, IPVS. The practical claim is not
that every application will notice a latency improvement; it is that operators no
longer need IPVS to avoid iptables’ scaling characteristics.

SIG Network recommends nftables for IPVS users running Kubernetes 1.36 or later 
on Linux 5.13 or newer. Although nftables was already GA in 1.33, the project points
to later performance and scaling fixes that were not backported before 1.36. This
makes the Kubernetes version, host kernel, and userspace `nft` tooling part of the
migration readiness check.

There is also a compatibility boundary to test. nftables mode intentionally changed
some historical defaults. For example, NodePort Services are normally reachable 
only through a node’s default addresses rather than every local address. Network
plugins, policy engines, monitoring agents, or scripts that inspect kube-proxy’s
iptables chains may also carry assumptions that do not hold after the switch. General
availability describes the backend’s maturity; it does not certify every component
in an operator’s environment.

## The retirement schedule creates a real upgrade boundary

The staged plan matters because “removed in 1.40” can obscure what operators will
actually see. KEP-5495 describes a `KubeProxyIPVS` feature gate that remains enabled
during the early deprecation stages. In 1.40, its default is expected to flip to
false. An IPVS configuration without an explicit override would then cause kube-
proxy to reject the mode. By 1.43, the gate is scheduled to be locked off and the
implementation removed. The cleanup of the gate itself follows in 1.46.

That sequence provides a temporary escape hatch, not a reason to defer. A cluster
forced to re-enable a deprecated backend during an upgrade would still face the 
same migration, now under tighter time pressure and with a shrinking testing window.
Managed Kubernetes services may also expose the change differently, depending on
whether they control kube-proxy configuration, node images, and version sequencing
on the customer’s behalf.

The long runway should be treated as space for controlled validation. Organizations
with slow platform qualification cycles, regulated change windows, or multiple distributions
need to place this work on their Kubernetes upgrade roadmap now. Fleet inventories
should include clusters built from old automation as well as current production 
environments; an IPVS setting can survive for years in kubeadm templates, cluster
APIs, Helm values, or infrastructure repositories even when nobody actively chose
it recently.

## A practical migration plan

Start with discovery. Inspect the effective kube-proxy configuration in every cluster
and classify IPVS users by Kubernetes version, Linux kernel, node operating system,
CNI, NetworkPolicy implementation, and observability stack. Do not infer the mode
solely from a preferred template: compare declared configuration with what is actually
running.

Then move through a staged test rather than changing an entire fleet at once:

 * **Confirm prerequisites.** Target Kubernetes 1.36 or later where possible, verify
   Linux 5.13 or newer, and check the host’s nft tooling and distribution support.
 * **Audit integrations.** Search for components that read, modify, or report on
   kube-proxy’s iptables or IPVS state. Confirm nftables support with the CNI, policy,
   security, and monitoring vendors in use.
 * **Build Service tests.** Exercise ClusterIP, NodePort, LoadBalancer, ExternalIP,
   session affinity, local traffic policies, dual-stack behavior, and source-address
   expectations relevant to the platform.
 * **Canary representative nodes or clusters.** Include high-Service-count environments
   and workloads sensitive to connection establishment, not only a small development
   cluster.
 * **Observe both planes.** Compare kube-proxy synchronization duration and errors
   alongside connection failures, first-packet latency, DNS behavior, and endpoint
   propagation.
 * **Document rollback.** Kubernetes says moving to nftables generally requires 
   changing kube-proxy configuration and restarting its pods; switching modes also
   cleans up old rules. Teams should nevertheless prove the reverse operation under
   their own automation before production rollout.

For kubeadm-managed clusters, the central change is typically updating the kube-
proxy ConfigMap from `mode: ipvs` to `mode: nftables` and restarting kube-proxy.
Operators must also translate any IPVS-specific configuration rather than carrying
obsolete options forward. A GitOps or fleet-management system should make the change
explicit and verify convergence, because a partially updated DaemonSet can leave
nodes using different assumptions during the rollout.

## iptables remains a fallback, not the strategic destination

Clusters that cannot satisfy nftables prerequisites can move back to iptables. Kubernetes
notes that the 2026 implementation is substantially better than the version that
prompted IPVS adoption: rules have been reduced, generation uses fewer resources,
state reads are avoided when possible, and updates are more incremental. That may
be adequate for many clusters that previously ruled it out.

However, the fallback carries different operational guidance. The project recommends
rebooting each node after switching from IPVS to iptables, rather than merely restarting
kube-proxy. iptables also retains less favorable scaling properties than nftables.
Choosing it can be reasonable for older kernels or a constrained compatibility window,
but teams should record why it was selected and when they will reconsider nftables.

## What platform teams should do next

The IPVS retirement is a useful test of Kubernetes lifecycle discipline. A backend
that once solved an urgent scaling problem is leaving because the surrounding APIs,
implementations, and maintenance economics changed. Keeping it indefinitely would
spread testing across architectures that do not provide equivalent behavior.

Platform teams should establish an owner and a target release for the migration 
before Kubernetes 1.40 enters their upgrade path. The near-term deliverable is not
merely a configuration patch; it is evidence that Service behavior, network security,
and observability remain correct under nftables. Teams that complete that work early
gain a cleaner data plane and remove a future upgrade blocker. Teams that postpone
it risk discovering hidden dependencies precisely when the old backend stops starting
by default.

## Sources

 * [Kubernetes Blog: Scheduling the removal of the kube-proxy IPVS backend](https://kubernetes.io/blog/2026/11/16/ipvs-removal/)
 * [Kubernetes Enhancement Proposal 5495: Deprecate IPVS mode in kube-proxy](https://github.com/kubernetes/enhancements/blob/master/keps/sig-network/5495-deprecate-ipvs-mode-in-kube-proxy/README.md)
 * [Kubernetes Blog: NFTables mode for kube-proxy](https://kubernetes.io/blog/2025/02/28/nftables-kube-proxy/)
