Commit 2c398c5d authored by Thorsten Schifferdecker's avatar Thorsten Schifferdecker Committed by Darren Shepherd

Update server.go

fallback to the old --address part and enable the non-tls port to make healthz happy
parent 35cfc717
...@@ -101,9 +101,9 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) { ...@@ -101,9 +101,9 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) {
"--allocate-node-cidrs", "--allocate-node-cidrs",
"--cluster-cidr", cfg.ClusterIPRange.String(), "--cluster-cidr", cfg.ClusterIPRange.String(),
"--root-ca-file", runtime.TokenCA, "--root-ca-file", runtime.TokenCA,
"--port", "0", "--port", "10252",
"--bind-address", "127.0.0.1", "--address", "127.0.0.1",
"--secure-port", "10252", "--secure-port", "0",
} }
if cfg.NoLeaderElect { if cfg.NoLeaderElect {
args = append(args, "--leader-elect=false") args = append(args, "--leader-elect=false")
...@@ -121,9 +121,9 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) { ...@@ -121,9 +121,9 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) {
func scheduler(cfg *config.Control, runtime *config.ControlRuntime) { func scheduler(cfg *config.Control, runtime *config.ControlRuntime) {
args := []string{ args := []string{
"--kubeconfig", runtime.KubeConfigSystem, "--kubeconfig", runtime.KubeConfigSystem,
"--port", "0", "--port", "10251",
"--bind-address", "127.0.0.1", "--address", "127.0.0.1",
"--secure-port", "10251", "--secure-port", "0",
} }
if cfg.NoLeaderElect { if cfg.NoLeaderElect {
args = append(args, "--leader-elect=false") args = append(args, "--leader-elect=false")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment