From 10b3717b6a489b1cd36152ea4cb111ebfdd35bf5 Mon Sep 17 00:00:00 2001 From: Hans Rakers Date: Fri, 1 Sep 2023 09:55:35 +0200 Subject: [PATCH] Remove manager metrics patch This is done by cluster-api tilt-prepare now --- config/default/kustomization.yaml | 1 - .../manager_prometheus_metrics_patch.yaml | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 config/default/manager_prometheus_metrics_patch.yaml diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index fef7060c..07457c88 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -28,7 +28,6 @@ patchesStrategicMerge: - manager_image_patch_edited.yaml - manager_webhook_patch.yaml - webhookcainjection_patch.yaml -- manager_prometheus_metrics_patch.yaml # Protect the /metrics endpoint by putting it behind auth. # If you want your controller-manager to expose the /metrics diff --git a/config/default/manager_prometheus_metrics_patch.yaml b/config/default/manager_prometheus_metrics_patch.yaml deleted file mode 100644 index 0b96c681..00000000 --- a/config/default/manager_prometheus_metrics_patch.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# This patch enables Prometheus scraping for the manager pod. -apiVersion: apps/v1 -kind: Deployment -metadata: - name: controller-manager - namespace: system -spec: - template: - metadata: - annotations: - prometheus.io/scrape: 'true' - spec: - containers: - # Expose the prometheus metrics on default port - - name: manager - ports: - - containerPort: 8080 - name: metrics - protocol: TCP