make the controller-manager and scheduler usable for the

componentstatus.
Fixes #126

Signed-off-by: Thorsten Schifferdecker <schifferdecker@b1-systems.de>
pull/111/head^2
Thorsten Schifferdecker 6 years ago committed by Darren Shepherd
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…
Cancel
Save