summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2021-11-02 11:21:55 +0100
committerMaciej Wereski <m.wereski@partner.samsung.com>2021-11-02 11:21:55 +0100
commit82a6aabad85a601a16d5410dbe0a1fc5ebf45d99 (patch)
tree4dd0c6b63729a11439fc53d9072bae9798f8e19b
parent9c2f3e702748a1005f196359fc438e132c32de05 (diff)
[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 <m.wereski@partner.samsung.com> Change-Id: I725a38eb9d4dffcc017c24399436ddfccdb91123
-rw-r--r--kubernetes/common/common/templates/_log.tpl7
1 files changed, 7 insertions, 0 deletions
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 -}}