Default kube-apiserver to httpsport + 1

This commit is contained in:
Darren Shepherd 2019-08-26 21:37:47 -07:00
parent 9c8b95be9d
commit f57dd13774

View File

@ -215,7 +215,11 @@ func defaults(config *config.Control) {
} }
if config.ListenPort == 0 { if config.ListenPort == 0 {
config.ListenPort = 6444 if config.HTTPSPort != 0 {
config.ListenPort = config.HTTPSPort + 1
} else {
config.ListenPort = 6444
}
} }
if config.DataDir == "" { if config.DataDir == "" {