mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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:
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…
Reference in New Issue
Block a user