From 76bde40218fc05e0b531846b220f8ec99a66aa5f Mon Sep 17 00:00:00 2001 From: Mario Zelger <15825982+mario-zelger@users.noreply.github.com> Date: Tue, 1 Jul 2025 09:29:19 +0200 Subject: [PATCH] added ability to define resource options for the metrics exporter (#238) --- helm/mail/templates/statefulset.yaml | 1 + helm/mail/values.yaml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/helm/mail/templates/statefulset.yaml b/helm/mail/templates/statefulset.yaml index 809eea8..c9cce26 100644 --- a/helm/mail/templates/statefulset.yaml +++ b/helm/mail/templates/statefulset.yaml @@ -175,6 +175,7 @@ spec: initialDelaySeconds: 5 failureThreshold: 30 periodSeconds: 10 + resources: {{ toYaml .Values.metrics.resources | nindent 12 }} {{- end }} {{- if .Values.extraContainers }} {{- tpl .Values.extraContainers $root | nindent 8 }} diff --git a/helm/mail/values.yaml b/helm/mail/values.yaml index a5550c6..c22de88 100644 --- a/helm/mail/values.yaml +++ b/helm/mail/values.yaml @@ -64,6 +64,15 @@ metrics: maxage 90 } + resources: {} + # If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi # Tell helm to restart (recreate) pods on every deploy. Setting this to true will inject # `date/deploy-date: ` annotation into pod specification for StateFulset. This