Merge pull request #71126 from rosti/warn-api-bind-override

kubeadm: Warn on API server bind address override
This commit is contained in:
k8s-ci-robot
2018-11-16 12:04:10 -08:00
committed by GitHub

View File

@@ -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
}