mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 05:06:28 +00:00
fix: add different annotations for different pvc (#2547)
This commit is contained in:
@@ -5,7 +5,7 @@ kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
{{- with .pvcAnnotations }}
|
||||
{{- with .pvcAnnotations.data }}
|
||||
{{- toYaml .| nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "rustfs.fullname" $ }}-data
|
||||
@@ -31,7 +31,7 @@ kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
{{- with .pvcAnnotations }}
|
||||
{{- with .pvcAnnotations.logs }}
|
||||
{{- toYaml .| nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "rustfs.fullname" $ }}-logs
|
||||
|
||||
@@ -193,7 +193,7 @@ spec:
|
||||
labels:
|
||||
{{- toYaml .Values.commonLabels | nindent 10 }}
|
||||
annotations:
|
||||
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
|
||||
{{- toYaml .Values.storageclass.pvcAnnotations.logs | nindent 10 }}
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: {{ .Values.storageclass.name }}
|
||||
@@ -207,7 +207,7 @@ spec:
|
||||
labels:
|
||||
{{- toYaml $.Values.commonLabels | nindent 10 }}
|
||||
annotations:
|
||||
{{- toYaml $.Values.storageclass.pvcAnnotations | nindent 10 }}
|
||||
{{- toYaml $.Values.storageclass.pvcAnnotations.data | nindent 10 }}
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: {{ $.Values.storageclass.name }}
|
||||
@@ -221,7 +221,7 @@ spec:
|
||||
labels:
|
||||
{{- toYaml .Values.commonLabels | nindent 10 }}
|
||||
annotations:
|
||||
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
|
||||
{{- toYaml .Values.storageclass.pvcAnnotations.data | nindent 10 }}
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: {{ .Values.storageclass.name }}
|
||||
|
||||
@@ -265,9 +265,11 @@ storageclass:
|
||||
dataStorageSize: 256Mi
|
||||
logStorageSize: 256Mi
|
||||
pvcAnnotations: {}
|
||||
# pvcAnnotations:
|
||||
# - name: team
|
||||
# value: "RustFS"
|
||||
#pvcAnnotations:
|
||||
# data:
|
||||
# key: value
|
||||
# logs:
|
||||
# key: value
|
||||
|
||||
pdb:
|
||||
create: false
|
||||
|
||||
Reference in New Issue
Block a user