From 0ee7199e5d626676f0fa38ab06f54ade33ece2d8 Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:52:37 +0000 Subject: [PATCH] :bug: fix the default port used for metrics. We cannot set :8080 since it has TLS --- cmd/manager/main.go | 2 +- config/base/manager/manager.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 6a818c3c..e69ad916 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -100,7 +100,7 @@ func main() { caCertDir string globalPullSecret string ) - flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.") + flag.StringVar(&metricsAddr, "metrics-bind-address", ":7443", "The address the metric endpoint binds to.") flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.") flag.StringVar(&pprofAddr, "pprof-bind-address", "0", "The address the pprof endpoint binds to. an empty string or 0 disables pprof") flag.BoolVar(&enableLeaderElection, "leader-elect", false, diff --git a/config/base/manager/manager.yaml b/config/base/manager/manager.yaml index a4d7b776..77af33fd 100644 --- a/config/base/manager/manager.yaml +++ b/config/base/manager/manager.yaml @@ -54,7 +54,7 @@ spec: - ./manager args: - --leader-elect - - --metrics-bind-address=127.0.0.1:8080 + - --metrics-bind-address=127.0.0.1:7443 - --external-address=catalogd-service.olmv1-system.svc image: controller:latest name: manager