SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
feat: Add support for "custom" dataDirs type for volume server in kubernetes helm chart (#6094)
Spencer Hachmeister1cf433abf22a
diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yamlindex 0a70d8c440..e197bff857 100644--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml@@ -176,9 +176,11 @@ spec:-mserver={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }}volumeMounts:{{- range $dir := .Values.volume.dataDirs }}+ {{- if not ( eq $dir.type "custom" ) }}- name: {{ $dir.name }}mountPath: "/{{ $dir.name }}/"{{- end }}+ {{- end }}{{- if .Values.volume.logs }}- name: logsmountPath: "/logs/"diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex af62ac36fc..94ac8b567e 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -301,6 +301,12 @@ volume:# - name: data# type: "emptyDir"# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")+ #+ # If these don't meet your needs, you can use "custom" here along with extraVolumes and extraVolumeMounts+ # Particularly useful when using more than 1 for the volume server replicas.+ # - name: data+ # type: "custom"+ # maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")dataDirs:- name: data1@@ -381,6 +387,15 @@ volume:sidecars: []initContainers: ""+ # Example for use when using more than 1 volume server replica+ # extraVolumeMounts: |+ # - name: drive+ # mountPath: /drive+ # subPathExpr: $(POD_NAME)+ # extraVolumes: |+ # - name: drive+ # hostPath:+ # path: /var/mnt/extraVolumes: ""extraVolumeMounts: ""