mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 01:26:28 +00:00
Kubelet doesn't override addrs from Cloud provider
This commit is contained in:
parent
3837d95191
commit
46465c0a5a
@ -420,7 +420,10 @@ func (kl *Kubelet) setNodeAddress(node *v1.Node) error {
|
||||
glog.V(2).Infof("Using node IP: %q", kl.nodeIP.String())
|
||||
}
|
||||
|
||||
if kl.cloud != nil {
|
||||
if kl.externalCloudProvider {
|
||||
// We rely on the external cloud provider to supply the addresses.
|
||||
return nil
|
||||
} else if kl.cloud != nil {
|
||||
instances, ok := kl.cloud.Instances()
|
||||
if !ok {
|
||||
return fmt.Errorf("failed to get instances from cloud provider")
|
||||
|
Loading…
Reference in New Issue
Block a user