From 437e4b245c7bcfe488165007b42fd64c16053985 Mon Sep 17 00:00:00 2001 From: Mohse Morad Date: Wed, 6 Nov 2024 12:35:58 +0200 Subject: [PATCH] Add resources requests & limit to charts --- helm/holmes/templates/holmes.yaml | 6 ++++++ helm/holmes/values.yaml | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/helm/holmes/templates/holmes.yaml b/helm/holmes/templates/holmes.yaml index 8b7e308..552ae9c 100644 --- a/helm/holmes/templates/holmes.yaml +++ b/helm/holmes/templates/holmes.yaml @@ -54,6 +54,12 @@ spec: mountPath: /etc/robusta/config - name: custom-toolsets-configmap mountPath: /etc/holmes/config + resources: + requests: + cpu: {{ .Values.resources.requests.cpu }} + memory: {{ .Values.resources.requests.memory }} + limits: + memory: {{ .Values.resources.limits.memory }} {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | nindent 8 }} {{- end }} diff --git a/helm/holmes/values.yaml b/helm/holmes/values.yaml index 2f299d6..b021cba 100644 --- a/helm/holmes/values.yaml +++ b/helm/holmes/values.yaml @@ -27,4 +27,11 @@ serviceAccount: imagePullSecrets: [] annotations: {} -toolsets: [] \ No newline at end of file +toolsets: [] + +resources: + requests: + cpu: 50m + memory: 512Mi + limits: + memory: 512Mi \ No newline at end of file