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:
Thorsten Schifferdecker 2019-03-03 17:06:06 +01:00 committed by Darren Shepherd
parent 91f9472751
commit ee2fffb0ca

View File

@ -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")