mirror of https://github.com/k3s-io/k3s
Default kube-apiserver to httpsport + 1
parent
9c8b95be9d
commit
f57dd13774
|
@ -215,7 +215,11 @@ func defaults(config *config.Control) {
|
|||
}
|
||||
|
||||
if config.ListenPort == 0 {
|
||||
config.ListenPort = 6444
|
||||
if config.HTTPSPort != 0 {
|
||||
config.ListenPort = config.HTTPSPort + 1
|
||||
} else {
|
||||
config.ListenPort = 6444
|
||||
}
|
||||
}
|
||||
|
||||
if config.DataDir == "" {
|
||||
|
|
Loading…
Reference in New Issue