helm: Mount /tmp as emptyDir (#1105)
Co-authored-by: houseme <[email protected]> Co-authored-by: loverustfs <[email protected]>
This commit is contained in:
co-authored by
houseme
loverustfs
parent
7178a94792
commit
2e4ce6921b
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user