From ddec87c38feefeeab7f421f4f362da62d0c3a4a1 Mon Sep 17 00:00:00 2001 From: Stephan Meijer Date: Wed, 29 Apr 2026 01:18:56 +0200 Subject: [PATCH] fix(api): add writable emptyDir volume for /tmp Signed-off-by: Stephan Meijer --- charts/api/templates/deployment.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/charts/api/templates/deployment.yaml b/charts/api/templates/deployment.yaml index c54ec35..7a853dc 100644 --- a/charts/api/templates/deployment.yaml +++ b/charts/api/templates/deployment.yaml @@ -36,9 +36,12 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.extraVolumes }} - volumes: {{- toYaml . | nindent 8 }} - {{- end }} + volumes: + - name: tmp + emptyDir: {} + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: api image: {{ include "api.image" . }} @@ -57,6 +60,9 @@ spec: resources: {{- include "common.resources.preset.apply" (dict "type" .Values.resourcesPreset "resources" .Values.resources) | nindent 12 }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.readinessProbe | nindent 12 }} - {{- with .Values.extraVolumeMounts }} - volumeMounts: {{- toYaml . | nindent 12 }} - {{- end }} + volumeMounts: + - name: tmp + mountPath: /tmp + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }}