Remove deprecated flags from kube-apiserver

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/5548/head
Brad Davidson 2022-01-19 17:22:48 -08:00 committed by Brad Davidson
parent 551f2fa00a
commit 703779c32f
1 changed files with 0 additions and 1 deletions

View File

@ -176,7 +176,6 @@ func apiServer(ctx context.Context, cfg *config.Control) error {
if cfg.AdvertiseIP != "" {
argsMap["advertise-address"] = cfg.AdvertiseIP
}
argsMap["insecure-port"] = "0"
argsMap["secure-port"] = strconv.Itoa(cfg.APIServerPort)
if cfg.APIServerBindAddress == "" {
argsMap["bind-address"] = getLocalhostIP(cfg.ServiceIPRanges).String()