Disable CCM metrics port when legacy CCM functionality is disabled

Prevents port conflicts on upgrade for users that have deployed other cloud controllers.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2022-11-28 22:49:33 +00:00 committed by Brad Davidson
parent 953c7699b4
commit e08a662509

View File

@ -319,6 +319,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control) error {
}
if cfg.DisableCCM {
argsMap["controllers"] = argsMap["controllers"] + ",-cloud-node,-cloud-node-lifecycle"
argsMap["secure-port"] = "0"
}
if cfg.DisableServiceLB {
argsMap["controllers"] = argsMap["controllers"] + ",-service"