mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #71126 from rosti/warn-api-bind-override
kubeadm: Warn on API server bind address override
This commit is contained in:
commit
7ff49c99d3
@ -19,6 +19,7 @@ package config
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
@ -175,5 +176,8 @@ func ChooseAPIServerBindAddress(bindAddress net.IP) (net.IP, error) {
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
if bindAddress != nil && !bindAddress.IsUnspecified() && !reflect.DeepEqual(ip, bindAddress) {
|
||||
klog.Warningf("WARNING: overriding requested API server bind address: requested %q, actual %q", bindAddress, ip)
|
||||
}
|
||||
return ip, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user