mirror of https://github.com/k3s-io/k3s
Don't ever change 10252/10251 ports
Kubernetes componentstatus check is hardcoded to 10252 and 10251 so we should never change these ports. If you do componentstatus will return error.pull/1070/head
parent
37b0abac32
commit
77703b90ff
|
@ -126,10 +126,6 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) {
|
|||
"cluster-signing-cert-file": runtime.ServerCA,
|
||||
"cluster-signing-key-file": runtime.ServerCAKey,
|
||||
}
|
||||
offset := cfg.HTTPSPort - 6443
|
||||
if offset > 0 {
|
||||
argsMap["port"] = strconv.Itoa(10252 + offset)
|
||||
}
|
||||
if cfg.NoLeaderElect {
|
||||
argsMap["leader-elect"] = "false"
|
||||
}
|
||||
|
@ -152,10 +148,6 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) {
|
|||
"bind-address": "127.0.0.1",
|
||||
"secure-port": "0",
|
||||
}
|
||||
offset := cfg.HTTPSPort - 6443
|
||||
if offset > 0 {
|
||||
argsMap["port"] = strconv.Itoa(10251 + offset)
|
||||
}
|
||||
if cfg.NoLeaderElect {
|
||||
argsMap["leader-elect"] = "false"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue