mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
feat: add existing pvc claim for standalone (#1829)
Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
@@ -60,10 +60,6 @@ spec:
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- name: init-step
|
||||
image: "{{ .Values.image.initImage.repository }}:{{ .Values.image.initImage.tag }}"
|
||||
@@ -127,8 +123,16 @@ spec:
|
||||
volumes:
|
||||
- name: logs
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "rustfs.fullname" . }}-logs
|
||||
{{- if .Values.mode.standalone.existingClaim.logsClaim }}
|
||||
claimName: {{ .Values.mode.standalone.existingClaim.logsClaim }}
|
||||
{{- else }}
|
||||
claimName: {{ include "rustfs.fullname" $ }}-logs
|
||||
{{- end }}
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "rustfs.fullname" . }}-data
|
||||
{{- if .Values.mode.standalone.existingClaim.dataClaim }}
|
||||
claimName: {{ .Values.mode.standalone.existingClaim.dataClaim }}
|
||||
{{- else }}
|
||||
claimName: {{ include "rustfs.fullname" $ }}-data
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user