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>
pull/6588/head
Brad Davidson 2 years ago committed by Brad Davidson
parent 953c7699b4
commit e08a662509

@ -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"

Loading…
Cancel
Save