English edition · cyberattaques.org in FrenchFrançais
IT news

Kubernetes schedules removal of the kube-proxy IPVS backend for version 1.40

Kubernetes SIG Network has set version 1.40 as the release that will remove the kube-proxy IPVS backend, deprecated since 1.35. Teams running clusters in IPVS mode need to plan a move to the nftables or iptables backends.

What to do now Illustration photo (data center network servers)

The Kubernetes project has published a timeline for removing the IPVS backend from kube-proxy, the component that implements Services on each node. The backend was officially deprecated in Kubernetes 1.35 and still works today, although kube-proxy now logs a deprecation warning when it is selected. SIG Network says it will be removed in Kubernetes 1.40.

IPVS mode was originally built to address two performance problems in the iptables backend. On the data plane, every new connection had to be matched against a list of rules that grew with the number of services in the cluster. On the control plane, kube-proxy rewrote the whole iptables ruleset whenever any service or endpoint changed.

According to the maintainers, IPVS delivered the performance it promised, but the kernel IPVS API proved a poor fit for the Kubernetes Services model, and the backend never handled every edge case of Service behaviour correctly. It is also complex and built quite differently from the other two backends, which makes it more costly to maintain.

The nftables backend, introduced in Kubernetes 1.29 and generally available since 1.33, was designed with the long-term aim of replacing both iptables and IPVS. SIG Network is therefore asking every IPVS user to plan a migration to nftables or iptables ahead of the 1.40 release.

The available excerpt of the announcement does not give a step-by-step migration procedure or a release date for Kubernetes 1.40.

Action plan

What to do now

  1. Identify every cluster where kube-proxy runs in IPVS mode, for example by checking its logs for the deprecation warning.
  2. Plan the migration of those clusters to the nftables backend, stable since Kubernetes 1.33, or to iptables if nftables is not suitable.
  3. Test the new backend on a non-production cluster to confirm Service behaviour before any upgrade to Kubernetes 1.40.
  4. Update deployment templates and kube-proxy configuration so that new clusters are no longer provisioned in IPVS mode.

Sources