mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 14:23:13 +00:00
2d4d240508
Co-authored-by: houseme <housemecn@gmail.com> Co-authored-by: loverustfs <hello@rustfs.com>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
{{- if and .Values.mode.standalone.enabled (not .Values.mode.standalone.existingClaim.dataClaim) }}
|
|
{{- with .Values.storageclass }}
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "rustfs.fullname" $ }}-data
|
|
namespace: {{ $.Release.Namespace }}
|
|
labels:
|
|
{{- toYaml $.Values.commonLabels | nindent 4 }}
|
|
spec:
|
|
accessModes: [ ReadWriteOnce ]
|
|
{{- with .name }}
|
|
storageClassName: {{ . }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .dataStorageSize }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if and .Values.mode.standalone.enabled (not .Values.mode.standalone.existingClaim.logsClaim) }}
|
|
{{- with .Values.storageclass }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "rustfs.fullname" $ }}-logs
|
|
namespace: {{ $.Release.Namespace }}
|
|
labels:
|
|
{{- toYaml $.Values.commonLabels | nindent 4 }}
|
|
spec:
|
|
accessModes: [ ReadWriteOnce ]
|
|
{{- with .name }}
|
|
storageClassName: {{ . }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .logStorageSize }}
|
|
{{- end }}
|
|
{{- end }}
|