added ability to define resource options for the metrics exporter (#238)

This commit is contained in:
Mario Zelger 2025-07-01 09:29:19 +02:00 committed by GitHub
parent 9fcd02f67c
commit 76bde40218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -175,6 +175,7 @@ spec:
initialDelaySeconds: 5 initialDelaySeconds: 5
failureThreshold: 30 failureThreshold: 30
periodSeconds: 10 periodSeconds: 10
resources: {{ toYaml .Values.metrics.resources | nindent 12 }}
{{- end }} {{- end }}
{{- if .Values.extraContainers }} {{- if .Values.extraContainers }}
{{- tpl .Values.extraContainers $root | nindent 8 }} {{- tpl .Values.extraContainers $root | nindent 8 }}

View file

@ -64,6 +64,15 @@ metrics:
maxage 90 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 # Tell helm to restart (recreate) pods on every deploy. Setting this to true will inject
# `date/deploy-date: <timestamp>` annotation into pod specification for StateFulset. This # `date/deploy-date: <timestamp>` annotation into pod specification for StateFulset. This