From: Andreas Geissler Date: Thu, 15 Jun 2023 12:34:34 +0000 (+0200) Subject: [HOLMES] Correct resources settings for holmes X-Git-Tag: 12.0.0~17^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=commitdiff_plain;h=bb28a945181ef9b62f50dcdb494f6f455f97acf3 [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 --- 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: