mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-15 07:20:46 +00:00
When using a legacy cloud provider, if kubelet is passed a node address in --node-ip it will use this address in preference out the the addresses by the cloud provider. When using an external cloud provider, kubelet will annotate the Node with the first --node-ip for use by the cloud provider. The cloud provider validates this annotation but does not otherwise use it, meaning that --node-ip has no effect. This change moves the node address filtering code from kubelet to component-helpers and updates both kubelet and cloud-provider to use it. There is no functional change to kubelet, but cloud-provider now honours kubelet's --node-ip.