mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
fix: add different annotations for different pvc (#2547)
This commit is contained in:
+2
-1
@@ -133,7 +133,8 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
|
||||
| storageclass.dataStorageSize | string | `"256Mi"` | The storage size for data PVC. |
|
||||
| storageclass.logStorageSize | string | `"256Mi"` | The storage size for logs PVC. |
|
||||
| storageclass.name | string | `"local-path"` | The name for StorageClass. |
|
||||
| storageclass.pvcAnnotations | map | `{}` | PVC customized annotations. |
|
||||
| storageclass.pvcAnnotations.data | map | `{}` | Data pvc customized annotations. |
|
||||
| storageclass.pvcAnnotations.logs | map | `{}` | Logs pvc customized annotations. |
|
||||
| tolerations | list | `[]` | |
|
||||
| gatewayApi.enabled | bool | `false` | To enable/disable gateway api support. |
|
||||
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
|
||||
|
||||
@@ -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