mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
feat: add support for pvc customized annotations (#2412)
This commit is contained in:
+2
-1
@@ -47,7 +47,7 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
|
||||
| config.rustfs.obs_endpoint.logs.endpoint | string | `""` | Remote endpoint url for logs. |
|
||||
| config.rustfs.obs_endpoint.profiling.enabled | bool | `false` | Whether to send profiling to remote endpoint. |
|
||||
| config.rustfs.obs_endpoint.profiling.endpoint | string | `""` | Remote endpoint url for profiling. |
|
||||
| extraEnv | list | `[]` | Extra environment variables for RustFS container. |
|
||||
| extraEnv | map | `[]` | Extra environment variables for RustFS container. |
|
||||
| containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
|
||||
| containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
|
||||
| containerSecurityContext.runAsNonRoot | bool | `true` | |
|
||||
@@ -133,6 +133,7 @@ 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. |
|
||||
| tolerations | list | `[]` | |
|
||||
| gatewayApi.enabled | bool | `false` | To enable/disable gateway api support. |
|
||||
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
|
||||
|
||||
@@ -5,6 +5,9 @@ kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
{{- with .pvcAnnotations }}
|
||||
{{- toYaml .| nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "rustfs.fullname" $ }}-data
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
labels:
|
||||
@@ -28,6 +31,9 @@ kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
{{- with .pvcAnnotations }}
|
||||
{{- toYaml .| nindent 4 }}
|
||||
{{- end }}
|
||||
name: {{ include "rustfs.fullname" $ }}-logs
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
labels:
|
||||
|
||||
@@ -192,6 +192,8 @@ spec:
|
||||
name: logs
|
||||
labels:
|
||||
{{- toYaml .Values.commonLabels | nindent 10 }}
|
||||
annotations:
|
||||
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: {{ .Values.storageclass.name }}
|
||||
@@ -204,6 +206,8 @@ spec:
|
||||
name: data-rustfs-{{ $i }}
|
||||
labels:
|
||||
{{- toYaml $.Values.commonLabels | nindent 10 }}
|
||||
annotations:
|
||||
{{- toYaml $.Values.storageclass.pvcAnnotations | nindent 10 }}
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: {{ $.Values.storageclass.name }}
|
||||
@@ -216,6 +220,8 @@ spec:
|
||||
name: data
|
||||
labels:
|
||||
{{- toYaml .Values.commonLabels | nindent 10 }}
|
||||
annotations:
|
||||
{{- toYaml .Values.storageclass.pvcAnnotations | nindent 10 }}
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: {{ .Values.storageclass.name }}
|
||||
|
||||
@@ -264,6 +264,10 @@ storageclass:
|
||||
name: local-path
|
||||
dataStorageSize: 256Mi
|
||||
logStorageSize: 256Mi
|
||||
pvcAnnotations: {}
|
||||
# pvcAnnotations:
|
||||
# - name: team
|
||||
# value: "RustFS"
|
||||
|
||||
pdb:
|
||||
create: false
|
||||
|
||||
Reference in New Issue
Block a user