mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add check for IPv6 '::' when calculating kube-proxy's node IP kube-proxy currently checks for a bind address of 0.0.0.0 (IPv4 all-zeros) when calculating kube-proxy's node IP, but it does not check for an address of '::' (IPv6 all-zeros). For either of those all-zeros addresses, the node IP should be determined based on the hostname, rather than using the address directly. Also added a helpful log message when the kube-proxy protocol is determined to be IPv6. fixes #52613 **What this PR does / why we need it**: This PR adds a check for a bind address of IPv6 '::' (all zeros) when kube-proxy is calculating its node IP, similar to what is done for a bind address of IPv4 0.0.0.0. For either of these all-zeros addresses, kube-proxy should derive the node IP based on the hostname, rather than use the bind address directly. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #52613 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```