From 77703b90ffc06f4a5bcbdffb761c4ea41d7c5717 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 14 Nov 2019 00:32:18 +0000 Subject: [PATCH] Don't ever change 10252/10251 ports Kubernetes componentstatus check is hardcoded to 10252 and 10251 so we should never change these ports. If you do componentstatus will return error. --- pkg/daemons/control/server.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index b3ff90acd1..9394a05318 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -126,10 +126,6 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) { "cluster-signing-cert-file": runtime.ServerCA, "cluster-signing-key-file": runtime.ServerCAKey, } - offset := cfg.HTTPSPort - 6443 - if offset > 0 { - argsMap["port"] = strconv.Itoa(10252 + offset) - } if cfg.NoLeaderElect { argsMap["leader-elect"] = "false" } @@ -152,10 +148,6 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) { "bind-address": "127.0.0.1", "secure-port": "0", } - offset := cfg.HTTPSPort - 6443 - if offset > 0 { - argsMap["port"] = strconv.Itoa(10251 + offset) - } if cfg.NoLeaderElect { argsMap["leader-elect"] = "false" }