From ee2fffb0ca5a758b7ef3a2d92eec7a8dd6ae1773 Mon Sep 17 00:00:00 2001 From: Thorsten Schifferdecker Date: Sun, 3 Mar 2019 17:06:06 +0100 Subject: [PATCH] make the controller-manager and scheduler usable for the componentstatus. Fixes #126 Signed-off-by: Thorsten Schifferdecker --- pkg/daemons/control/server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index 08ae36999d..8782396222 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -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")