kube-proxy IPVS Is Being Removed in Kubernetes 1.40: How to Migrate to the nftables Backend
If your clusters run kube-proxy with mode: ipvs, your Service routing has an expiry date. On 16 November 2026, Kubernetes SIG Network announced that the IPVS backend, deprecated since 1.35, is scheduled for removal in 1.40. The kube-proxy ipvs removal is easy to underestimate because nothing breaks today. kube-proxy keeps routing, prints a warning, and every dashboard stays green. Then one upgrade window, kube-proxy refuses to start on every node, and ClusterIP traffic stops cluster-wide.
That is why this matters now rather than in 2027. The migration touches kernels, node images, CNI settings, load balancer add-ons such as MetalLB, and tuning flags that have no nftables equivalent. Each of those has its own lead time. This post is a practitioner runbook, not another backend comparison. You leave with a release-by-release timeline, an inventory script, a configuration translation table, a canary rollout plan, and a rollback procedure that actually works.
What this covers: the verified removal timeline and feature gate, how to find every IPVS cluster you own, the behavioural differences that bite during migration, kernel prerequisites, a canary-first rollout on self-managed and managed Kubernetes, and how to roll back.
Context and Background
kube-proxy is the per-node agent that turns Service and EndpointSlice objects into packet-forwarding rules. Upstream it ships four backends: iptables, ipvs, nftables, and winkernel for Windows. For most of Kubernetes’ history, iptables was the default and IPVS was the “fast” option. IPVS (IP Virtual Server) is a kernel load balancer that uses hash tables, so Service lookup cost does not grow with Service count the way a linear iptables chain does.
The nftables backend was built to end that trade-off. It arrived as alpha in Kubernetes 1.29, went beta in 1.31, and became generally available in 1.33. It uses nftables verdict maps, so dispatch is roughly constant time, and it supports incremental, transactional rule updates. SIG Network designed it to eventually replace both iptables and IPVS. If you want the full side-by-side on data-plane mechanics and performance, our comparison of kube-proxy iptables, IPVS, nftables and Cilium eBPF already covers that ground. This post assumes you have decided, or have had it decided for you, and need to execute.
The deprecation path is tracked in KEP-5495, authored by Adrian Moisey and Dan Winship. Its motivation is blunt. SIG Network lacks maintainers who know the IPVS code, and it has been redirecting IPVS bug reports toward nftables for some time. The SIG Network removal announcement adds the architectural reasons. The kernel IPVS API is a poor fit for the Services API, so the backend never implemented every Service edge case correctly. It still depends on iptables and ipset for features beyond basic load balancing. And the IPVS interface has no batch updates, which caps how quickly large rule sets can sync.
There is also a platform force outside Kubernetes. Red Hat deprecated the iptables-nft and ipset packages in RHEL 9, and the upstream post notes Red Hat’s plan to remove the iptables API. Any backend that leans on iptables, which includes IPVS mode, is on borrowed time on that platform regardless of what Kubernetes does.
Finally, the kube-proxy IPVS removal lands alongside other networking shifts. KEP-5343 proposes making nftables the default proxy mode, and the Kubernetes 1.38 preview shows how many deprecations are converging on the next few releases. Planning the IPVS exit together with those changes avoids paying for two disruptive node rollouts.
The kube-proxy IPVS Removal Timeline: What 1.40 Actually Changes
The kube-proxy IPVS removal is staged. Under KEP-5495, the KubeProxyIPVS feature gate appeared in 1.37 defaulting to true. In 1.40 the gate defaults to false, and kube-proxy in ipvs mode exits with an error unless you override the gate. The IPVS code is planned for deletion in 1.43, and the gate itself in 1.46.

Figure 1: The staged kube-proxy IPVS removal timeline, per KEP-5495 and the SIG Network announcement. Releases after 1.37 are plans, not shipped facts.
The diagram reads top to bottom as a sequence of releases. nftables enters in 1.29 and reaches GA in 1.33. IPVS is deprecated with a logged warning in 1.35. The KubeProxyIPVS gate arrives in 1.37. The two red-flagged stages are 1.40, where IPVS stops working by default, and 1.43, where the code disappears and no override can save you.
1.40 is the operational cliff, even though the code survives
Most coverage says “IPVS is removed in 1.40”, and the SIG Network post uses that framing. The KEP is more precise. In Stage 3, planned for 1.40, the gate flips to Default: false. A kube-proxy configured with mode: ipvs then exits with an error that lists the valid modes, iptables and nftables. The code is still compiled in, so an administrator can set --feature-gates=KubeProxyIPVS=true to keep it alive. Stage 4, planned for 1.43, deletes pkg/proxy/ipvs and locks the gate.
For an operator, the distinction matters less than it seems. From the day your control plane and nodes reach 1.40, an unmodified IPVS cluster has a kube-proxy DaemonSet in CrashLoopBackOff on every node. Existing kernel IPVS rules stay in place, so established traffic may keep flowing for a while. But no new Service, no endpoint change, and no scaled-up pod gets programmed. That is a slow, confusing outage rather than a clean failure. Treat 1.40 as the deadline, not 1.43.
The override gate is a seatbelt, not a strategy
It is tempting to plan “upgrade to 1.40, set the gate to true, migrate later”. Resist that. First, the gate only buys three minor releases, roughly a year at the project’s current three-releases-per-year cadence. Second, KEP-5495 states that the maintainers will not commit to fixing IPVS bugs, and they declined to move the code to a separate repository because they would not support it there either. Running a deprecated, unmaintained data path in production during that year means any IPVS-specific CVE or regression has no upstream owner.
Third, the override couples two risky changes. A minor-version upgrade already changes kube-proxy, kubelet, and often the node image. Adding a proxy-mode change to the same window doubles the blast radius and muddies rollback. The safer sequence is to migrate on the version you run today, soak it, and then upgrade. Use the gate only as an emergency escape hatch if a node pool slips.
The nftables default flip may land in the same release
There is a second, quieter change to plan for. KEP-5343 proposes making nftables the default proxy mode, targeting GA in 1.40. It is still marked provisional, so treat the target as a plan that can move. If it lands as written, clusters that never set a mode explicitly will move from iptables to nftables on upgrade. Nodes on kernels older than 5.13 would then fail to start kube-proxy.
That matters even for teams who think they do not use IPVS. A cluster that relies on the implicit iptables default gets an unplanned migration. The practical rule is simple: set mode explicitly in every kube-proxy configuration you own, whatever its value. Explicit configuration makes the 1.40 upgrade a no-op for proxy mode, and turns the switch into a change you schedule rather than one that happens to you.
When does 1.40 ship?
No date has been announced. As of 29 November 2026, 1.38 is the next release, expected in December 2026. Kubernetes has shipped roughly three minor releases a year, so a naive projection puts 1.40 somewhere in the second half of 2027. That is an estimate from cadence, not a schedule. Managed providers also lag upstream by weeks to months, and support windows overlap. Your real deadline is the date your provider forces you onto 1.40, which you can read from its release calendar once 1.40 is scheduled.
Migrating IPVS to nftables: The Step-by-Step Runbook
Preparing for the kube-proxy IPVS removal takes seven stages. Inventory, behaviour audit, kernel gate, config translation, canary, wave rollout, and cleanup. A rollback path runs alongside every stage after the canary. The ordering is deliberate. Every stage either removes an unknown or reduces blast radius before the next one widens it.

Figure 2: The kube-proxy proxy mode migration runbook. A failed canary or wave check routes to rollback instead of forward.
Read the figure as a pipeline with one escape. Inventory and the kernel gate are pure discovery and change nothing. The canary is the first stage that touches traffic, and from there each validation gate either advances to the next wave or drops into the rollback path. Cleanup happens only after the last wave has soaked.
Step 1: Inventory every cluster and confirm the effective mode
The configured mode and the running mode can disagree. A ConfigMap may say one thing, a --proxy-mode command-line flag in the DaemonSet may override it, and a managed control plane may inject its own default. The only trustworthy source is the running process. kube-proxy reports its active mode on its metrics endpoint, port 10249 by default, at the /proxyMode path.
# Run against every kubeconfig context you own
for ctx in $(kubectl config get-contexts -o name); do
echo "== $ctx"
# 1. What the config says (kubeadm layout; EKS uses kube-proxy-config)
kubectl --context "$ctx" -n kube-system get cm kube-proxy kube-proxy-config \
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{.data}{"\n"}{end}' 2>/dev/null \
| grep -Eo 'mode: *"?[a-z]*"?' | sort -u
# 2. Any flag override on the DaemonSet
kubectl --context "$ctx" -n kube-system get ds kube-proxy \
-o jsonpath='{.spec.template.spec.containers[0].command}{.spec.template.spec.containers[0].args}' 2>/dev/null \
| tr ',' '\n' | grep -i proxy-mode
# 3. The deprecation warning kube-proxy logs in ipvs mode (1.35+)
kubectl --context "$ctx" -n kube-system logs ds/kube-proxy --tail=500 2>/dev/null \
| grep -i -m1 'ipvs'
done
# On a node (or via a debug pod with hostNetwork), ask kube-proxy directly
curl -s http://127.0.0.1:10249/proxyMode; echo
Record four facts per cluster. The effective mode. The Kubernetes minor version. The node OS image and kernel per node pool. And whether kube-proxy is even present, because clusters running a kube-proxy replacement such as Cilium or GKE Dataplane V2 are out of scope. Also flag any cluster where /proxyMode returns ipvs but nobody can say why. Those are often clusters built from an old installer template years ago, and they usually carry other unexamined settings.
Step 2: Audit the behaviours IPVS gave you implicitly
Services keep the same API semantics across backends, so most applications notice nothing. The failures come from behaviour that IPVS provided as a side effect, which some workload or tool started depending on. Figure 3 shows why those side effects exist.

Figure 3: IPVS mode splits Service handling across the kube-ipvs0 dummy interface, IPVS virtual servers, iptables and ipset. nftables mode keeps it in one nftables table.
In IPVS mode, kube-proxy creates a dummy interface called kube-ipvs0 and assigns every ClusterIP, and external IP, to it. The kernel then treats those addresses as local. IPVS virtual servers do the load balancing, while iptables chains and ipset sets still handle masquerading, NodePorts, and filtering. In nftables mode, everything lives in one kube-proxy table per address family. Service IPs are matched by verdict maps and never bound to an interface.
That structural difference produces the gotchas below. Walk through each one against your inventory.
| Behaviour | IPVS mode | nftables mode | What to check |
|---|---|---|---|
| Endpoint selection | Configurable scheduler such as rr, lc, sh, mh |
Random selection, no scheduler option | Any team relying on least-connection or source hashing |
| ClusterIP locality | ClusterIPs bound to kube-ipvs0, so they answer ICMP and look local |
Not bound to any interface; ping to a ClusterIP fails | Health checks or scripts that ping ClusterIPs |
| NodePort listen addresses | All local addresses by default | Primary node IPs by default (nodePortAddresses defaults to primary) |
Traffic arriving on secondary NICs or extra IPs |
| Localhost NodePorts | The documented localhost path is an iptables-mode feature; test what your IPVS nodes do | Not supported until the opt-in proxy of KEP-6032 | Anything calling 127.0.0.1:<nodePort> |
| IPVS timeouts | tcpTimeout, tcpFinTimeout, udpTimeout in the ipvs block |
No equivalent block; use the conntrack settings |
Long-lived idle TCP or UDP flows |
| ARP behaviour | strictARP often enabled for MetalLB or kube-vip |
Not applicable | L2 load balancer add-ons |
| Excluded CIDRs | excludeCIDRs protects foreign IPVS rules from cleanup |
Not applicable | Other software sharing the IPVS table |
| Other netfilter consumers | iptables KUBE-* chains exist |
No KUBE-* iptables chains |
Firewalls, agents, or scripts that hook kube-proxy chains |
Three rows deserve more than a table cell.
Schedulers are mostly an illusion. The SIG Network post argues that IPVS schedulers add little value in Kubernetes, and the reason is structural. Every node runs its own kube-proxy with its own scheduler state. A least-connection scheduler on node A knows nothing about connections opened from node B. Azure’s own AKS documentation notes the same effect: IPVS balancing is per node and only sees local connections, so with fewer than about two connections per node, traffic can be unbalanced. If a team insists they need least-connection balancing, the honest answer is that they need a proxy that sees all traffic, such as a Gateway API implementation or a service mesh.
Localhost NodePorts are the classic hard break. It bites hardest in mixed fleets, where some clusters run iptables mode and share manifests with the IPVS ones you are migrating. Disconnected clusters often run an in-cluster image registry and point the container runtime at localhost:<nodePort>. nftables has no equivalent of the iptables route_localnet trick, so this pattern fails. KEP-6032 adds an opt-in userspace TCP proxy behind the KubeProxyNFTablesLocalhostNodePorts gate, targeting alpha in 1.37, beta in 1.38, and GA in 1.40. It handles TCP only and activates when nodePortAddresses includes a loopback address. If you rely on this pattern today, either move to a hostPort or a node-local DaemonSet listener, or plan around that gate’s maturity.
Things that pinged ClusterIPs will stop getting replies. Because IPVS mode makes ClusterIPs local addresses, ICMP to a Service IP succeeds. Monitoring probes written against IPVS clusters sometimes use that as a “Service is up” signal. On nftables those probes go red even though the Service works. Replace them with TCP or HTTP checks against the Service port before you migrate, not after.
Step 3: Gate on kernel and OS before touching kube-proxy
The nftables backend needs Linux kernel 5.13 or newer on every node, per KEP-5343 and the Amazon EKS nftables guidance. IPVS and iptables run on older kernels, which is why this gate catches people. KEP-5343 lists typical distribution kernels: Debian 12 ships 6.1, Ubuntu 22.04 ships 5.15, and RHEL 9 and SLE 15 SP4 or SP5 nominally ship 5.14 with heavy backports. It also notes that RHEL 8’s nominal 4.18 kernel probably lacks enough backports to run nftables mode.
Minimum is not the same as recommended. The EKS guidance recommends kube-proxy 1.36 or later for nftables in large clusters. kube-proxy 1.36.0 restructured how nftables maps and rules are built, sharply reducing chains and jump rules. Before that release, clusters with hundreds of thousands of endpoints could see very slow rule syncs and CPU soft lockups. The kernel side matters too: the related kernel verifier improvements are in Linux 6.18, with backports to some stable kernels.
# Kernel per node, flagging anything under 5.13
kubectl get nodes -o custom-columns=NAME:.metadata.name,KERNEL:.status.nodeInfo.kernelVersion,OS:.status.nodeInfo.osImage,KUBELET:.status.nodeInfo.kubeletVersion \
| awk 'NR==1 || $2 !~ /^(5\.(1[3-9]|[2-9][0-9])|[6-9]\.)/'
Turn the result into a decision per node pool. A pool on 5.13 or newer and kube-proxy 1.36 or newer goes straight to nftables. A pool on 5.13 or newer with an older kube-proxy can migrate, but small clusters only, or upgrade first. A pool below 5.13 needs a new node image before it can run nftables. If that image cannot ship before your 1.40 upgrade, the fallback is iptables mode, which remains supported and needs no kernel change.
That fallback has a sting on Red Hat platforms. iptables mode on RHEL uses the deprecated iptables-nft compatibility layer. Moving an RHEL 8 fleet from IPVS to iptables buys time, but it lands you on a second deprecated path. Budget for the OS upgrade either way.
Step 4: Translate the configuration
kube-proxy reads a KubeProxyConfiguration object, usually from a ConfigMap. In kubeadm clusters the ConfigMap is kube-proxy and the data key is config.conf. On EKS the add-on manages kube-proxy-config. The translation is mostly deletion, because most ipvs block fields have no nftables counterpart.
# BEFORE: typical IPVS configuration (kubeadm config.conf)
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
scheduler: "rr"
strictARP: true # often set for MetalLB L2 mode
excludeCIDRs: []
tcpTimeout: 0s
tcpFinTimeout: 0s
udpTimeout: 0s
syncPeriod: 30s
minSyncPeriod: 0s
nodePortAddresses: null
conntrack:
maxPerCore: 32768
---
# AFTER: nftables configuration
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "nftables"
nftables:
masqueradeAll: false
masqueradeBit: 14
syncPeriod: 30s
minSyncPeriod: 1s
# nftables defaults NodePorts to primary node IPs. Set CIDRs explicitly
# if NodePort traffic arrives on secondary interfaces.
nodePortAddresses: null
conntrack:
maxPerCore: 32768
Handle each IPVS field deliberately rather than just deleting the block. scheduler has no replacement; record which Services depended on it and tell their owners. strictARP matters only to your L2 load balancer, so keep the MetalLB or kube-vip configuration consistent with the new mode and test failover. tcpTimeout, tcpFinTimeout, and udpTimeout were IPVS connection-table timeouts; if they were tuned for long-lived idle flows, review the equivalent behaviour under the kernel conntrack settings. excludeCIDRs existed to stop kube-proxy wiping IPVS rules owned by other software; that software needs its own plan.
Two nftables-mode differences from the Kubernetes documentation also apply when you come from IPVS. First, other components that inserted rules into kube-proxy’s iptables chains will find no such chains. Second, the iptables backend installs a rule that drops conntrack-invalid packets as a workaround for an old kernel bug, and nftables mode does not. The documented mitigation, if you hit spurious connection resets, is the net.netfilter.nf_conntrack_tcp_be_liberal=1 sysctl. Verify both points against the documentation for your exact minor version.
Step 5: Canary one node pool, not one cluster
Changing a ConfigMap and running kubectl rollout restart flips every node in the cluster within minutes. That is the documented quick path, and it is exactly what you should not do first in production. The safer unit of change is a node pool. Run a second kube-proxy DaemonSet, configured for nftables, that targets only canary nodes. Restrict the original IPVS DaemonSet away from those nodes with a node affinity rule.

Figure 4: Canary cutover. A fresh node pool joins with nftables kube-proxy, takes a slice of traffic, and either passes its gates or is drained and deleted.
The cleanest canary uses fresh nodes rather than converting old ones in place. A new node has never held kube-ipvs0, IPVS virtual servers, or IPVS-era iptables chains. You avoid the whole class of “leftover state” bugs, and rollback is simply draining and deleting the pool. For in-place conversion, upstream guidance as summarised in coverage of the SIG Network post recommends rebooting each node after changing the mode. kube-proxy also has a --cleanup flag that removes iptables and IPVS rules and exits, but check its behaviour on your exact version before relying on it.
# Label canary nodes and steer the two DaemonSets
kubectl label node canary-1 canary-2 kube-proxy-mode=nftables
# Original DaemonSet: avoid canary nodes
kubectl -n kube-system patch ds kube-proxy --type=merge -p '{
"spec":{"template":{"spec":{"affinity":{"nodeAffinity":{
"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{
"matchExpressions":[{"key":"kube-proxy-mode","operator":"NotIn","values":["nftables"]}]}]}}}}}}}'
# kube-proxy-nft: a copy of the DaemonSet with nodeSelector kube-proxy-mode=nftables
# and a ConfigMap whose config.conf sets mode: "nftables"
# On a canary node, confirm the new data path
curl -s http://127.0.0.1:10249/proxyMode; echo # expect: nftables
nft list table ip kube-proxy | head -40 # Service verdict maps present
ip link show kube-ipvs0 || echo "no kube-ipvs0: clean" # expected on fresh nodes
On managed platforms you may not be able to run two kube-proxy DaemonSets, because the provider reconciles the add-on. In that case use a canary cluster that mirrors production, then convert production pool by pool if the provider allows, or in one maintenance window if it does not.
Step 6: Define validation gates before the canary takes traffic
A canary without pass criteria is just an early outage, and the kube-proxy IPVS removal gives you time to do this properly. Write the gates down first, and make each one a number you can read from a dashboard. kube-proxy exposes Prometheus metrics on the same port that serves /proxyMode, and three of them carry most of the signal.
kubeproxy_sync_proxy_rules_duration_seconds measures how long each full or partial rule sync takes. On a canary it should be in the same range as, or better than, the IPVS nodes at equal Service count. kubeproxy_network_programming_duration_seconds measures the time from an API change to the rule being in place on the node. This is the metric that tells you whether endpoint churn during a rollout is visible to clients. kubeproxy_sync_proxy_rules_last_timestamp_seconds tells you syncs are still happening at all; a stalled timestamp means kube-proxy is alive but stuck.
Pair those with application-level checks. Run a synthetic client on the canary nodes that resolves and connects to a representative set of Services every few seconds: a ClusterIP, a headless Service, a NodePort, a LoadBalancer Service, and anything with sessionAffinity: ClientIP. Session affinity is honoured by both backends, but the implementation differs. IPVS uses its persistence timeout; nftables tracks client addresses in a set with a timeout. Test that sticky clients stay sticky across your configured timeoutSeconds.
Also exercise the transitions, not just the steady state. Scale a test Deployment from 2 to 20 replicas and back, then roll it. Watch for connection errors during endpoint removal. Good graceful-termination hygiene in the workload, covered in our guide to Kubernetes graceful shutdown and PodDisruptionBudgets, will hide most backend differences. Workloads without it are exactly where a new data path exposes old bugs.
A reasonable gate set looks like this. Zero failed synthetic connections over 24 hours, excluding planned pod restarts. Network programming latency p99 no worse than the IPVS baseline. No kube-proxy restarts. No CPU soft-lockup messages in node kernel logs. And DNS latency unchanged, because CoreDNS traffic is the highest-volume Service traffic in most clusters. Our note on CoreDNS, ndots, and service discovery latency explains which DNS metrics to baseline. These thresholds are a starting suggestion, not an upstream standard; tune them to your SLOs.
Step 7: Roll out in waves, then clean up
Once the canary passes its soak, expand in waves sized by risk. A common pattern is one low-traffic pool, then a quarter of production pools, then the rest. Re-run the gates after each wave. For node pools you rebuild rather than convert, change the node template or launch configuration so new nodes come up in the target mode. Then cordon, drain, and delete old nodes at a pace your PodDisruptionBudgets allow.
The final wave consolidates the DaemonSets. Point the original kube-proxy ConfigMap at mode: "nftables", remove the affinity patch, and delete the temporary canary DaemonSet. Then clean up the edges. Remove ipvsadm and IPVS kernel module loading from node bootstrap scripts. Delete monitoring that scraped IPVS statistics. Drop strictARP notes from runbooks. Update your cluster templates and Terraform modules, or the next cluster you build will be IPVS again.
Finally, make the mode explicit everywhere, including clusters that already run iptables. That protects you from the default flip proposed in KEP-5343 and keeps your next upgrade boring.
Managed Kubernetes: EKS, AKS, and GKE
Managed services change the mechanics of the kube-proxy IPVS removal but not the deadline. Here is what each provider documents today. For the wider networking and upgrade picture, see our EKS vs GKE vs AKS networking and upgrade comparison.
Amazon EKS. The kube-proxy EKS add-on supports IPVS mode through configuration values, and AWS publishes a best-practices page for running it. AWS also documents nftables mode, which needs an EKS cluster on Kubernetes 1.33 or later. Amazon Linux 2023 and current Ubuntu meet the 5.13 kernel minimum. The Amazon VPC CNI is compatible with nftables mode from v1.23.0. AWS warns the switch is disruptive and recommends doing it off-hours or at cluster creation. AWS also recommends nftables only from kube-proxy 1.36 for large clusters.
# EKS: switch the managed kube-proxy add-on to nftables
aws eks update-addon --cluster-name "$CLUSTER_NAME" --addon-name kube-proxy \
--configuration-values '{"mode": "nftables"}' \
--resolve-conflicts OVERWRITE
kubectl -n kube-system rollout restart ds kube-proxy
Because the add-on owns the DaemonSet, the dual-DaemonSet canary above conflicts with add-on reconciliation on EKS. A canary cluster, or a self-managed kube-proxy during the transition, is the more realistic path. Treat that as our assessment rather than AWS guidance.
Azure Kubernetes Service. AKS exposes kube-proxy configuration as a cluster-level JSON document with IPTABLES, IPVS, and NFTABLES modes. Its IPVS settings include a LeastConnection or RoundRobin scheduler and TCP and UDP timeouts. As of this writing, custom kube-proxy configuration, including nftables mode, is a preview feature. It needs the aks-preview CLI extension and the KubeProxyConfigurationPreview feature flag, and Microsoft states previews are excluded from SLAs. The AKS documentation explicitly recommends nftables as the replacement for IPVS. Watch for nftables graduating from preview before 1.40 reaches AKS; if it has not, plan to fall back to iptables.
# AKS (preview): kube-proxy.json contains {"enabled": true, "mode": "NFTABLES"}
az aks update --resource-group "$RG" --name "$CLUSTER" --kube-proxy-config kube-proxy.json
The AKS change is cluster-wide, and Microsoft warns of a possible slight interruption while rules are reprogrammed. There is no per-pool canary, so use a canary cluster.
Google Kubernetes Engine. GKE Dataplane V2 uses Cilium instead of kube-proxy to implement Services, and it is enabled by default for new Autopilot clusters. Those clusters are unaffected by this change. We found no GKE documentation offering a user-selectable IPVS mode on Standard clusters. If you run GKE Standard without Dataplane V2, confirm the mode with the /proxyMode check rather than assuming.
Self-managed distributions vary. kubeadm, k3s, RKE2, Kubespray, and OpenShift each have their own way to set the proxy mode, and some set IPVS in their own defaults. Check each distribution’s release notes for when it changes defaults, and read the actual setting from running nodes.
Rollback: keep it boring and rehearsed
Rollback must be faster than diagnosis. On a node-pool canary, rollback is draining and deleting the canary pool, which returns workloads to IPVS nodes that never changed. On an in-place conversion, revert the ConfigMap to mode: "ipvs", restart kube-proxy, and reboot or replace the affected nodes to clear nftables state. Rehearse this on the canary before the first production wave, and time it.
Rollback has an expiry date too. On 1.40 and later, returning to IPVS requires the KubeProxyIPVS=true gate override, and on 1.43 there is nothing to return to. Your durable rollback target after 1.40 is iptables mode. Keep a tested iptables configuration in the runbook as plan B for any pool where nftables misbehaves.
Trade-offs, Gotchas, and What Goes Wrong
Most failures around the kube-proxy IPVS removal are not exotic. They come from assumptions nobody wrote down.
The silent-success trap. The most dangerous migration is one that looks finished. A team edits the ConfigMap, forgets the restart, and every pod keeps running IPVS. The Tigera migration guide makes the same point: ConfigMap changes do not apply until kube-proxy restarts. The /proxyMode endpoint is the only proof of completion, so make it part of the acceptance criteria for every pool.
Leftover state on converted nodes. In-place conversion leaves kube-ipvs0 and its bound addresses behind unless something removes them. While those addresses stay bound, the node still treats ClusterIPs as local. That can mask or create problems that disappear after a reboot, which makes them hard to debug. Prefer node replacement, and if you must convert in place, reboot.
Kernel minimum versus kernel reality. A node can satisfy 5.13 and still perform badly at scale. Before kube-proxy 1.36 and newer kernels, very large endpoint counts could trigger slow syncs and CPU soft lockups. A related risk in KEP-5343 is that an older nft binary can crash when reading rules written by a much newer one. That matters when node debugging tools ship a different nft version from the one kube-proxy uses. Pin and test your debugging toolchain.
CNI interaction. Some CNIs change their own behaviour based on the kube-proxy mode. Calico, for example, switches to IPVS-aware service handling when kube-proxy runs IPVS, and Tigera documents a matching switch of Calico’s Linux data plane to nftables. Check your CNI’s documentation, and our CNI comparison of Calico, Cilium, Flannel and Multus, before assuming the CNI is mode-agnostic.
Benchmarks do not transfer. Published latency charts compare nftables and IPVS under specific Service counts and kernels. Coverage of the SIG Network post describes nftables as very slightly ahead of IPVS on first-packet latency at 5,000 to 30,000 Services. Treat that as one test profile, not a guarantee for your workload. Measure your own baseline before and after.
The “just skip to eBPF” temptation. Replacing kube-proxy entirely with Cilium is a legitimate destination, covered in our Cilium eBPF networking deep dive. But it is a CNI migration, not a proxy-mode change, with a much larger blast radius. If your deadline is 1.40, do the nftables move first and evaluate eBPF on its own merits later.
Anti-pattern: coupling with the version upgrade. Flipping mode and minor version in one window makes every failure ambiguous. Was it the new kubelet, the new kernel, or the new data path? Separate them by at least one soak period.
Practical Recommendations
Start your kube-proxy IPVS removal work with an inventory this quarter, even if 1.40 feels distant. The inventory is cheap, and it surfaces the long-lead items: node images below kernel 5.13, RHEL 8 fleets, localhost NodePort dependencies, MetalLB configurations, and teams who believe they need IPVS schedulers. Those items, not the ConfigMap edit, set your real timeline.
Choose nftables as the target unless a node pool cannot meet the kernel floor in time. In that case, use iptables as a bridge and schedule the OS upgrade explicitly. Run the migration on your current Kubernetes version, soak it through at least one normal release cycle of your own workloads, and only then plan the 1.40 upgrade. Treat the KubeProxyIPVS override as an emergency lever with an owner and an expiry date, never as the plan.
On managed platforms, lean on canary clusters rather than in-cluster canaries, because providers reconcile the kube-proxy add-on. On AKS, track nftables’ preview status closely. On GKE, confirm whether Dataplane V2 already makes this moot.
Checklist:
- Query
/proxyModeon every cluster; list allipvsresults with version, kernel, and OS per pool. - Flag kernels below 5.13 and kube-proxy below 1.36 in large clusters.
- Search manifests and runbooks for localhost NodePorts, ClusterIP pings,
strictARP, and scheduler assumptions. - Translate
ipvssettings deliberately; setmodeexplicitly everywhere. - Canary on fresh nodes with written pass and fail gates; rehearse rollback.
- Roll out in waves, then remove IPVS tooling from images, templates, and monitoring.
- Upgrade to 1.40 only after the fleet reports
nftablesoriptableseverywhere.
Frequently Asked Questions
When will kube-proxy IPVS mode stop working?
Under the KEP-5495 plan, Kubernetes 1.40 flips the KubeProxyIPVS feature gate to false. kube-proxy configured for IPVS then exits with an error unless an administrator explicitly re-enables the gate. The IPVS code itself is scheduled for deletion in 1.43, when no override remains. No release date for 1.40 has been announced as of November 2026. Projecting from roughly three releases a year suggests the second half of 2027, but that is an estimate, and your managed provider’s adoption date is the deadline that actually binds.
Should I migrate from IPVS to nftables or to iptables?
Migrate to nftables wherever nodes run Linux kernel 5.13 or newer. It is the backend SIG Network designed to replace both IPVS and iptables, it matches IPVS scaling characteristics, and it is GA since 1.33. Use iptables only as a bridge for node pools that cannot reach the kernel floor before your 1.40 upgrade. iptables remains supported, but on Red Hat platforms it relies on deprecated compatibility packages. A bridge to iptables should therefore come with a dated plan to upgrade the OS.
Will my applications notice the switch from IPVS to nftables?
Most will not, because the Kubernetes Services API behaves the same across backends. The exceptions involve behaviour IPVS provided as a side effect. ClusterIPs stop answering ping. NodePorts listen only on primary node IPs by default. Least-connection or hashing schedulers disappear in favour of random selection. Localhost NodePorts need extra configuration. Long-lived idle connections may hit different timeouts. Audit for those patterns before migrating and replace ICMP-based health checks with TCP or HTTP probes so monitoring does not raise false alarms.
What kernel version does kube-proxy nftables mode require?
kube-proxy’s nftables mode requires Linux kernel 5.13 or newer on every node running it. Amazon Linux 2023, Debian 12, Ubuntu 22.04, and RHEL 9 meet that floor, while RHEL 8’s 4.18-based kernel is considered insufficient upstream. For large clusters, AWS recommends kube-proxy 1.36 or later. Newer kernels, with verifier improvements in Linux 6.18 and some backports, reduce rule-sync time and avoid CPU soft lockups at very high endpoint counts. Check every node pool, not just the default one.
Can I keep using IPVS after upgrading to Kubernetes 1.40?
Technically yes, for a limited time. Setting the KubeProxyIPVS=true feature gate on kube-proxy keeps IPVS mode working in 1.40 through 1.42. It stops being possible in 1.43, when the code is removed. SIG Network has said it will not maintain the IPVS code, so you would run an unsupported data path in production. Use the override only as a short-lived escape hatch for a node pool that slipped, with a named owner and a removal date.
Does the kube-proxy IPVS removal affect GKE, EKS, and AKS clusters?
It affects any cluster where kube-proxy actually runs in IPVS mode. On EKS and AKS, IPVS is an opt-in setting, so only clusters configured for it are exposed; both providers document nftables as the path forward. EKS supports nftables from Kubernetes 1.33, while AKS nftables support is a preview feature as of this writing. GKE clusters using Dataplane V2, the default for new Autopilot clusters, use Cilium instead of kube-proxy and are unaffected. Verify each cluster’s effective mode rather than assuming.
Further Reading
- kube-proxy iptables vs IPVS vs nftables vs Cilium eBPF compared: the data-path mechanics and performance comparison behind this runbook.
- Kubernetes 1.38 preview: tracked enhancements and deprecations: what else changes in the next release you will upgrade through.
- EKS vs GKE vs AKS networking, upgrades and cost compared: how each managed provider handles networking options and upgrade windows.
- Scheduling the removal of the kube-proxy IPVS backend, the SIG Network announcement on kubernetes.io.
- KEP-5495: Deprecate ipvs mode in kube-proxy, the enhancement proposal with the gate and release stages.
By Riju — about
