Skip to content

Commit

Permalink
make the controller-manager and scheduler usable for the
Browse files Browse the repository at this point in the history
componentstatus.
Fixes #126

Signed-off-by: Thorsten Schifferdecker <schifferdecker@b1-systems.de>
  • Loading branch information
curx authored and ibuildthecloud committed Mar 4, 2019
1 parent 91f9472 commit ee2fffb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/daemons/control/server.go
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit ee2fffb

Please sign in to comment.