From bea8f3a6f3db1060ade64faa219cce6bf453cdb2 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Sun, 1 Sep 2024 15:08:37 +0200 Subject: [DCAEGEN2] define emptyDir volume for /tmp dir - this improves support for making the pod filesystem read-only (of ves-collector) Issue-ID: DCAEGEN2-3415 Change-Id: Ic7413b2fd589d095b69eec0c88693b2db4e3c13c Signed-off-by: Fiete Ostkamp --- .../common/dcaegen2-services-common/templates/_deployment.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl index c841d6df50..5e39d51844 100644 --- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl +++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl @@ -313,6 +313,8 @@ spec: name: {{ ternary "app-config-input" "app-config" (not $drNeedProvisioning) }} - mountPath: /app-config-input name: app-config-input + - mountPath: /tmp + name: tmp-volume {{- if $logDir }} - mountPath: {{ $logDir}} name: logs @@ -385,6 +387,9 @@ spec: - emptyDir: medium: Memory name: app-config + - name: tmp-volume + emptyDir: + sizeLimit: 128Mi {{- if $logDir }} - emptyDir: {} name: logs -- cgit 1.2.3-korg