From 2e4ce6921b8a1e9bfe7d515819fe90b04bac8256 Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Mon, 15 Dec 2025 08:59:28 +0000 Subject: [PATCH] helm: Mount /tmp as emptyDir (#1105) Co-authored-by: houseme Co-authored-by: loverustfs --- helm/rustfs/templates/deployment.yaml | 4 ++++ helm/rustfs/templates/statefulset.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 55d68df6..d19fc0a3 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -122,7 +122,11 @@ spec: mountPath: /logs - name: data mountPath: /data + - name: tmp + mountPath: /tmp volumes: + - name: tmp + emptyDir: {} - name: logs persistentVolumeClaim: claimName: {{ include "rustfs.fullname" . }}-logs diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index b17a08ef..432443ff 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -135,6 +135,8 @@ spec: readinessProbe: {{- toYaml .Values.readinessProbe | nindent 12 }} volumeMounts: + - name: tmp + mountPath: /tmp - name: logs mountPath: {{ $logDir }} {{- if eq (int .Values.replicaCount) 4 }} @@ -146,6 +148,9 @@ spec: - name: data mountPath: /data {{- end }} + volumes: + - name: tmp + emptyDir: {} volumeClaimTemplates: - metadata: name: logs