From bb28a945181ef9b62f50dcdb494f6f455f97acf3 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Thu, 15 Jun 2023 14:34:34 +0200 Subject: [PATCH] [HOLMES] Correct resources settings for holmes Add the resources config to rule management Correct the resources values for proper startup Issue-ID: OOM-3188 Signed-off-by: Andreas Geissler Change-Id: Ieadc080bdc438e983fe6e70cb6f0018b8be8d7ef --- .../holmes/components/holmes-engine-mgmt/values.yaml | 12 ++++++------ .../components/holmes-rule-mgmt/templates/deployment.yaml | 1 + kubernetes/holmes/components/holmes-rule-mgmt/values.yaml | 14 +++++++------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/kubernetes/holmes/components/holmes-engine-mgmt/values.yaml b/kubernetes/holmes/components/holmes-engine-mgmt/values.yaml index 028ca8d71e..17e51d76ce 100644 --- a/kubernetes/holmes/components/holmes-engine-mgmt/values.yaml +++ b/kubernetes/holmes/components/holmes-engine-mgmt/values.yaml @@ -108,17 +108,17 @@ readiness: resources: small: limits: - cpu: 500m - memory: 1Gi + cpu: 1 + memory: 2Gi requests: - cpu: 250m - memory: 500Mi + cpu: 0.5 + memory: 1Gi large: limits: - cpu: 500m + cpu: 1 memory: 2Gi requests: - cpu: 250m + cpu: 1 memory: 1Gi unlimited: {} diff --git a/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml b/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml index db0eb16092..f24d8eab65 100644 --- a/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml +++ b/kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml @@ -68,6 +68,7 @@ spec: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + resources: {{ include "common.resources" . | nindent 10 }} ports: {{ include "common.containerPorts" . | nindent 8 }} volumeMounts: - name: {{ include "common.fullname" . }}-env-config diff --git a/kubernetes/holmes/components/holmes-rule-mgmt/values.yaml b/kubernetes/holmes/components/holmes-rule-mgmt/values.yaml index d91bb1eeeb..1553d66411 100644 --- a/kubernetes/holmes/components/holmes-rule-mgmt/values.yaml +++ b/kubernetes/holmes/components/holmes-rule-mgmt/values.yaml @@ -120,18 +120,18 @@ readiness: resources: small: limits: - cpu: 250m - memory: 1024Mi + cpu: 1 + memory: 1Gi requests: - cpu: 250m - memory: 256Mi + cpu: 0.5 + memory: 1Gi large: limits: - cpu: 500m + cpu: 1 memory: 2Gi requests: - cpu: 500m - memory: 512Mi + cpu: 0.5 + memory: 1Gi unlimited: {} readinessCheck: -- 2.16.6