From e4c920b2f81927f994320545b68f9546446df8e5 Mon Sep 17 00:00:00 2001 From: Tim Campbell Date: Mon, 14 Oct 2024 18:14:59 +0200 Subject: [PATCH] Add resources for pgbouncer prometheus exporter --- charts/pgbouncer/templates/deployment.yaml | 2 ++ charts/pgbouncer/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/charts/pgbouncer/templates/deployment.yaml b/charts/pgbouncer/templates/deployment.yaml index e26fd3a..1f78bf2 100644 --- a/charts/pgbouncer/templates/deployment.yaml +++ b/charts/pgbouncer/templates/deployment.yaml @@ -81,6 +81,8 @@ spec: secretKeyRef: name: {{ .statsPgPasswordSecretRef.name }} key: {{ .statsPgPasswordSecretRef.key }} + resources: + {{- toYaml .Values.prometheusExporter.resources | nindent 12 }} {{- end }} {{- end }} {{- with .Values.nodeSelector }} diff --git a/charts/pgbouncer/values.yaml b/charts/pgbouncer/values.yaml index af57df2..c392a98 100644 --- a/charts/pgbouncer/values.yaml +++ b/charts/pgbouncer/values.yaml @@ -74,6 +74,7 @@ prometheusExporter: name: pgbouncer-exporter-password key: password installServiceMonitor: false + resources: {} podSecurityContext: {}