kubernetes/cmd/kube-proxy/app
Antonio Ojea a38b9363ec kube-proxy handle node PodCIDR changs
Kube/proxy, in NodeCIDR local detector mode, uses the node.Spec.PodCIDRs
field to build the Services iptables rules.

The Node object depends on the kubelet, but if kube-proxy runs as a
static pods or as a standalone binary, it is not possible to guarantee
that the values obtained at bootsrap are valid, causing traffic outages.

Kube-proxy has to react on node changes to avoid this problems, it
simply restarts if detect that the node PodCIDRs have changed.

In case that the Node has been deleted, kube-proxy will only log an
error and keep working, since it may break graceful shutdowns of the
node.
2022-10-18 19:25:40 +00:00
..
conntrack.go replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
init_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
init_windows.go Fix health check from Google's Load Balancer 2022-03-11 22:34:59 -08:00
server_others_test.go unit tests: Skip Windows-unrelated tests on Windows 2022-10-18 12:43:07 +03:00
server_others.go kube-proxy handle node PodCIDR changs 2022-10-18 19:25:40 +00:00
server_test.go unit tests: Skip Windows-unrelated tests on Windows 2022-10-18 12:43:07 +03:00
server_windows.go Remove Linux and Windows Kube-proxy Userspace mode 2022-10-05 16:59:02 -03:00
server.go kube-proxy handle node PodCIDR changs 2022-10-18 19:25:40 +00:00