mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-08-08 23:37:11 +00:00
The current Linux implementation checks whether a node supports IPv6 by testing for the presence of '/proc/net/if_inet6'. However, that check does not confirm that IPv6 support is actually enabled. As a result, kube-proxy can incorrectly enable dual‑stack support on nodes that do not have IPv6 enabled. The possibility to disable IPv6 support has existed since Linux kernel v2.6.27. Update the IPv6 support check to also consider the contents of '/proc/sys/net/ipv6/conf/all/disable_ipv6'. Signed-off-by: Tero Kauppinen <tero.kauppinen@est.tech>