Skip to content

Commit

Permalink
disable k8s controller-runtime manager metrics server (flyteorg#492)
Browse files Browse the repository at this point in the history
* setting MetricsBindAddress to 0 to disable controller-runtime manager metrics server

Signed-off-by: Daniel Rammer <[email protected]>

* and now in the webhook

Signed-off-by: Daniel Rammer <[email protected]>

Signed-off-by: Daniel Rammer <[email protected]>
  • Loading branch information
hamersaw authored Oct 11, 2022
1 parent 7d6d09d commit 20129fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions flytepropeller/cmd/controller/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions flytepropeller/cmd/controller/cmd/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20129fa

Please sign in to comment.