mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Actually pass down ServiceNodePortRange so it is used
Also fix default range to match what we've documented (off-by-one) Fix #9318
This commit is contained in:
parent
5aa0219ada
commit
6f3879e3bb
@ -391,6 +391,7 @@ func (s *APIServer) Run(_ []string) error {
|
||||
SSHUser: s.SSHUser,
|
||||
SSHKeyfile: s.SSHKeyfile,
|
||||
InstallSSHKey: installSSH,
|
||||
ServiceNodePortRange: s.ServiceNodePortRange,
|
||||
}
|
||||
m := master.New(config)
|
||||
|
||||
|
@ -247,7 +247,7 @@ func setDefaults(c *Config) {
|
||||
// We should probably allow this for clouds that don't require NodePort to do load-balancing (GCE)
|
||||
// but then that breaks the strict nestedness of ServiceType.
|
||||
// Review post-v1
|
||||
defaultServiceNodePortRange := util.PortRange{Base: 30000, Size: 2767}
|
||||
defaultServiceNodePortRange := util.PortRange{Base: 30000, Size: 2768}
|
||||
c.ServiceNodePortRange = defaultServiceNodePortRange
|
||||
glog.Infof("Node port range unspecified. Defaulting to %v.", c.ServiceNodePortRange)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user