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