diff --git a/flytepropeller/cmd/controller/cmd/root.go b/flytepropeller/cmd/controller/cmd/root.go index 7b3c37fcf..2bebc269b 100644 --- a/flytepropeller/cmd/controller/cmd/root.go +++ b/flytepropeller/cmd/controller/cmd/root.go @@ -131,6 +131,7 @@ func executeRootCmd(baseCtx context.Context, cfg *config2.Config) error { NewClient: func(cache cache.Cache, config *rest.Config, options client.Options, uncachedObjects ...client.Object) (client.Client, error) { return executors.NewFallbackClientBuilder(propellerScope.NewSubScope("kube")).Build(cache, config, options) }, + MetricsBindAddress: "0", } mgr, err := controller.CreateControllerManager(ctx, cfg, options) diff --git a/flytepropeller/cmd/controller/cmd/webhook.go b/flytepropeller/cmd/controller/cmd/webhook.go index e70628a1b..d22da0f28 100644 --- a/flytepropeller/cmd/controller/cmd/webhook.go +++ b/flytepropeller/cmd/controller/cmd/webhook.go @@ -110,8 +110,9 @@ func runWebhook(origContext context.Context, propellerCfg *config.Config, cfg *w NewClient: func(cache cache.Cache, config *rest.Config, options client.Options, uncachedObjects ...client.Object) (client.Client, error) { return executors.NewFallbackClientBuilder(webhookScope).Build(cache, config, options) }, - CertDir: cfg.CertDir, - Port: cfg.ListenPort, + CertDir: cfg.CertDir, + Port: cfg.ListenPort, + MetricsBindAddress: "0", } mgr, err := controller.CreateControllerManager(ctx, propellerCfg, options)