mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Fixing externalAddress in genericapiserver
This commit is contained in:
parent
421c12e69e
commit
6e71b4a2dc
@ -303,7 +303,7 @@ func setDefaults(c *Config) {
|
|||||||
if len(c.ExternalHost) == 0 && c.PublicAddress != nil {
|
if len(c.ExternalHost) == 0 && c.PublicAddress != nil {
|
||||||
hostAndPort := c.PublicAddress.String()
|
hostAndPort := c.PublicAddress.String()
|
||||||
if c.ReadWritePort != 0 {
|
if c.ReadWritePort != 0 {
|
||||||
hostAndPort = net.JoinHostPort(hostAndPort, strconv.Itoa(c.ServiceReadWritePort))
|
hostAndPort = net.JoinHostPort(hostAndPort, strconv.Itoa(c.ReadWritePort))
|
||||||
}
|
}
|
||||||
c.ExternalHost = hostAndPort
|
c.ExternalHost = hostAndPort
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user