From 60d9cab07562188bc7f1ecadc53c3d71d0b69637 Mon Sep 17 00:00:00 2001 From: Enxebre Date: Thu, 3 Oct 2019 13:07:35 +0200 Subject: [PATCH] Disable metrics to avoid pod collisions Disable metrics to avoid pod collisions. This was enable by default it https://github.com/kubernetes-sigs/controller-runtime/pull/510/files --- cmd/manager/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 3bf70da5a2..df6b952c5a 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -65,6 +65,8 @@ func main() { syncPeriod := 10 * time.Minute opts := manager.Options{ SyncPeriod: &syncPeriod, + // Disable metrics serving + MetricsBindAddress: "0", } if *watchNamespace != "" { opts.Namespace = *watchNamespace