mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Default kube-apiserver to httpsport + 1
This commit is contained in:
parent
9c8b95be9d
commit
f57dd13774
@ -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 == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user