mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 20:59:42 +08:00
feat: Add support for "custom" dataDirs type for volume server in kubernetes helm chart (#6094)
This commit is contained in:
parent
4534976c31
commit
1cf433abf2
@ -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 }}
|
-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:
|
volumeMounts:
|
||||||
{{- range $dir := .Values.volume.dataDirs }}
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
|
{{- if not ( eq $dir.type "custom" ) }}
|
||||||
- name: {{ $dir.name }}
|
- name: {{ $dir.name }}
|
||||||
mountPath: "/{{ $dir.name }}/"
|
mountPath: "/{{ $dir.name }}/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.volume.logs }}
|
{{- if .Values.volume.logs }}
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
|
@ -301,6 +301,12 @@ volume:
|
|||||||
# - name: data
|
# - name: data
|
||||||
# type: "emptyDir"
|
# type: "emptyDir"
|
||||||
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
# 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:
|
dataDirs:
|
||||||
- name: data1
|
- name: data1
|
||||||
@ -381,6 +387,15 @@ volume:
|
|||||||
sidecars: []
|
sidecars: []
|
||||||
initContainers: ""
|
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: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user