Boundlayer
Kuberneteskube-proxyIPVSnftablesPlatform Engineering

Kubernetes kube-proxy IPVS Deprecation: A Migration Plan for nftables or iptables

Plan a safe kube-proxy IPVS migration with the Kubernetes 1.40–1.46 deprecation stages, node compatibility checks, backend selection, canary rollout, and traffic validation.

9 min read

By BoundLayer Engineering Team

BoundLayer is a senior engineering partner for SaaS, fintech, AI automation, cloud infrastructure, legacy modernization, Web3, IoT, GPU computing, and data systems.

Kubernetes SIG Network has published a staged plan to retire the IPVS mode in kube-proxy. The mode is deprecated in Kubernetes 1.35; the current plan is to make its feature gate default off in 1.40, lock it to that default in 1.43, and remove the remaining feature gate in 1.46. These are planned release stages, not a reason to change production networking without testing. But teams still running IPVS should inventory their clusters and schedule a controlled migration.

For clusters on Kubernetes 1.36 or later with Linux kernel 5.13 or later, the Kubernetes project recommends evaluating the nftables backend. Older kernels or Kubernetes versions may require iptables as an interim or longer-term option. The right choice depends on the versions and capabilities of every node, the cluster distribution, and the network dataplane your provider supports.

First, confirm whether your cluster uses kube-proxy IPVS

Do not infer the mode from the Kubernetes version alone. Inspect the effective kube-proxy configuration, DaemonSet arguments and logs, and node-level networking state. In self-managed kubeadm clusters, the kube-proxy ConfigMap is one source of configuration; managed services may expose a different supported mechanism or restrict changes.

Inventory each cluster and node pool for:

  • Kubernetes version and upgrade schedule;
  • kube-proxy mode and any IPVS-specific flags or settings;
  • Linux distribution and kernel version on every node pool;
  • CNI or eBPF dataplane behavior, including whether kube-proxy is replaced or disabled;
  • host firewall rules and operational tooling that inspect IPVS tables;
  • service traffic patterns that are sensitive to connection setup, session affinity, NodePort, or external traffic policy.

If a CNI replaces kube-proxy, establish which component implements Service forwarding before planning a kube-proxy change. The IPVS deprecation concerns kube-proxy's IPVS backend; it does not mean every Kubernetes cluster must install kube-proxy or adopt a particular CNI.

Understand the timeline before setting a deadline

The Kubernetes enhancement plan describes multiple stages:

Kubernetes releasePlanned change
1.35IPVS is deprecated and kube-proxy logs a warning
1.37A KubeProxyIPVS feature gate is introduced, initially enabled by default
1.40The feature gate is planned to default off
1.43The feature gate is planned to be locked to its default, making IPVS unavailable
1.46The feature gate is planned to be removed

Treat the enhancement proposal as the source of the current schedule and check it again before an upgrade. Release timing and implementation details can change. In particular, Kubernetes 1.40 is not described as the point when the code disappears: the plan first changes the default, then prevents overriding it in a later release.

Choose the target backend based on node support

The Kubernetes migration guidance recommends nftables for kube-proxy users on Kubernetes 1.36+ with Linux kernel 5.13+. The nftables backend became generally available earlier, but the project notes that performance and scaling fixes were backported to older Kubernetes releases only selectively. Validate the exact version combination rather than treating “GA” as proof that every older node is a good target.

Use iptables when nftables is not supported by the node operating system or the Kubernetes version you must keep. The upstream project has improved iptables rule generation and updates, so its behavior and costs should be measured on your current workload instead of estimated from old comparisons with IPVS.

Do not make the choice solely from benchmark claims. Compare service creation and update time, connection establishment latency, CPU use during endpoint churn, and relevant packet paths in a representative environment. Confirm that the target backend supports the service features your workloads rely on.

Migrate as a networking change, not a one-line edit

For kubeadm-managed clusters, upstream guidance describes changing kube-proxy configuration from ipvs to nftables and restarting kube-proxy. That example is not a universal procedure for managed Kubernetes or custom CNI deployments. Follow the cluster provider's supported process, and avoid changing multiple independent networking variables in the same maintenance window.

A safer sequence is:

  1. Capture a baseline. Record service reachability, connection errors, DNS behavior, NodePort and load balancer paths, session affinity if used, and kube-proxy resource use.
  2. Check host prerequisites. Validate kernel version and nftables support on every node image, not just the control plane or one development node.
  3. Review configuration dependencies. Remove or translate IPVS-only options, host scripts, dashboards, and runbooks. Search node bootstrap and upgrade automation as well as the cluster ConfigMap.
  4. Test in a representative cluster. Include endpoint churn, rolling deployments, node replacement, network policy, and the service types used in production.
  5. Roll out to a small node pool or cluster first. Verify traffic from pods and external clients, then expand in controlled batches with clear abort conditions.
  6. Keep rollback operationally realistic. Document the provider-specific way to restore the previous configuration and how to reconcile node-level rules. Do not assume that changing one ConfigMap instantly restores a clean dataplane state.

If selecting iptables, upstream guidance recommends rebooting each node after switching for technical reasons. Account for disruption budgets, capacity, and workload evacuation in the plan. For nftables, follow the supported kube-proxy reconfiguration procedure for your distribution and verify that stale rules or competing controllers are not affecting traffic.

Validate user-visible behavior

Run tests that exercise Kubernetes Services, not only kube-proxy health. Include ClusterIP traffic, headless services where relevant, NodePort, external traffic policies, session affinity, readiness changes, and endpoint updates during rollouts. Validate from more than one node and network path. Monitor connection failures, resets, tail latency, kube-proxy synchronization errors, and node CPU during endpoint churn.

Compare the results to the baseline and test failure recovery: restart kube-proxy, replace a node, and perform the cluster upgrade path you actually use. A successful canary is not enough if node replacement or upgrades recreate the old IPVS configuration.

What about IPVS schedulers?

Some operators selected IPVS because it exposed additional schedulers. Kubernetes SIG Network explains that kube-proxy's distributed architecture does not share scheduler state across nodes, so most IPVS schedulers do not provide the expected global balancing behavior. If your architecture depends on a scheduler, verify that assumption with traffic measurements and select a load-balancing layer designed to provide the required semantics rather than preserving kube-proxy IPVS by default.

BoundLayer helps teams assess Kubernetes networking dependencies, plan safe backend transitions, and validate infrastructure changes against real traffic patterns. For adjacent work, see our Gateway API migration guide and Kubernetes AI workload scheduling guide.

Sources

Planning a Kubernetes networking migration?

We help teams inventory cluster networking, select a supported kube-proxy backend, and validate staged rollouts with clear rollback criteria.

Free consultation

Get a Free 30-Minute Technical Consultation

Share a few details about your project and we'll get back to you within 48 hours with a clear next step.

  • No sales pressure — a senior engineer, not a sales rep
  • Clear next step within 48 hours
  • We can sign an NDA before we talk

By submitting, you agree to be contacted about your request. We respect your privacy and can sign an NDA on request.