From 2c398c5d5f7b8f9fa7096bbaa571e6766c95d287 Mon Sep 17 00:00:00 2001 From: Thorsten Schifferdecker Date: Sun, 3 Mar 2019 20:35:28 +0100 Subject: [PATCH] Update server.go fallback to the old --address part and enable the non-tls port to make healthz happy --- pkg/daemons/control/server.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index 163ba534b5..8921358333 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -101,9 +101,9 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) { "--allocate-node-cidrs", "--cluster-cidr", cfg.ClusterIPRange.String(), "--root-ca-file", runtime.TokenCA, - "--port", "0", - "--bind-address", "127.0.0.1", - "--secure-port", "10252", + "--port", "10252", + "--address", "127.0.0.1", + "--secure-port", "0", } if cfg.NoLeaderElect { args = append(args, "--leader-elect=false") @@ -121,9 +121,9 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) { func scheduler(cfg *config.Control, runtime *config.ControlRuntime) { args := []string{ "--kubeconfig", runtime.KubeConfigSystem, - "--port", "0", - "--bind-address", "127.0.0.1", - "--secure-port", "10251", + "--port", "10251", + "--address", "127.0.0.1", + "--secure-port", "0", } if cfg.NoLeaderElect { args = append(args, "--leader-elect=false")