mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
make the controller-manager and scheduler usable for the
componentstatus. Fixes #126 Signed-off-by: Thorsten Schifferdecker <schifferdecker@b1-systems.de>
This commit is contained in:
parent
91f9472751
commit
ee2fffb0ca
@ -102,7 +102,8 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) {
|
||||
"--cluster-cidr", cfg.ClusterIPRange.String(),
|
||||
"--root-ca-file", runtime.TokenCA,
|
||||
"--port", "0",
|
||||
"--secure-port", "0",
|
||||
"--bind-address", "127.0.0.1"
|
||||
"--secure-port", "10252",
|
||||
}
|
||||
if cfg.NoLeaderElect {
|
||||
args = append(args, "--leader-elect=false")
|
||||
@ -121,7 +122,8 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) {
|
||||
args := []string{
|
||||
"--kubeconfig", runtime.KubeConfigSystem,
|
||||
"--port", "0",
|
||||
"--secure-port", "0",
|
||||
"--bind-address", "127.0.0.1"
|
||||
"--secure-port", "10251",
|
||||
}
|
||||
if cfg.NoLeaderElect {
|
||||
args = append(args, "--leader-elect=false")
|
||||
|
Loading…
Reference in New Issue
Block a user