From: Maciej Wereski Date: Tue, 2 Nov 2021 10:21:55 +0000 (+0100) Subject: [COMMON] Add resources to log sidecar template X-Git-Tag: 9.0.0~39 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=commitdiff_plain;h=82a6aabad85a601a16d5410dbe0a1fc5ebf45d99 [COMMON] Add resources to log sidecar template Filebeat sidecar containers in many cases has resources set. As a result, in many components resources section is added manually, after usage of log template. This commit solves this situation Issue-ID: OOM-1 Signed-off-by: Maciej Wereski Change-Id: I725a38eb9d4dffcc017c24399436ddfccdb91123 --- diff --git a/kubernetes/common/common/templates/_log.tpl b/kubernetes/common/common/templates/_log.tpl index 81420468b0..369c25b254 100644 --- a/kubernetes/common/common/templates/_log.tpl +++ b/kubernetes/common/common/templates/_log.tpl @@ -27,6 +27,13 @@ mountPath: {{ .Values.log.path }} - name: filebeat-data mountPath: /usr/share/filebeat/data + resources: + requests: + memory: "5Mi" + cpu: "10m" + limits: + memory: "20Mi" + cpu: "100m" {{- end -}} {{- end -}}