mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-05 16:47:04 +02:00
Fix/bad mount path better default value (#5253)
This commit is contained in:
parent
f6e39139d8
commit
5fa8f40fdf
|
@ -62,7 +62,7 @@ spec:
|
||||||
args: [ 'ls {{range $dir := .Values.volume.dataDirs }}/{{$dir.name}}/*.idx {{end}} && xargs -I {} mv {} /idx/' ]
|
args: [ 'ls {{range $dir := .Values.volume.dataDirs }}/{{$dir.name}}/*.idx {{end}} && xargs -I {} mv {} /idx/' ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: idx
|
- name: idx
|
||||||
mountPath: {{ .Values.volume.idx.name }}
|
mountPath: /idx
|
||||||
{{- range $dir := .Values.volume.dataDirs }}
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
- name: {{ $dir.name }}
|
- name: {{ $dir.name }}
|
||||||
mountPath: /{{ $dir.name }}
|
mountPath: /{{ $dir.name }}
|
||||||
|
@ -119,7 +119,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-dir {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}/{{$dir.name}}{{end}} \
|
-dir {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}/{{$dir.name}}{{end}} \
|
||||||
{{- if .Values.volume.idx }}
|
{{- if .Values.volume.idx }}
|
||||||
-dir.idx= /idx \
|
-dir.idx=/idx \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}{{$dir.maxVolumes}}{{end}} \
|
-max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}{{$dir.maxVolumes}}{{end}} \
|
||||||
{{- if .Values.volume.rack }}
|
{{- if .Values.volume.rack }}
|
||||||
|
|
|
@ -247,20 +247,19 @@ volume:
|
||||||
# storageClass: "local-path-provisioner"
|
# storageClass: "local-path-provisioner"
|
||||||
# annotations:
|
# annotations:
|
||||||
# "key": "value"
|
# "key": "value"
|
||||||
# maxVolumes: 0
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
#
|
#
|
||||||
# You may also spacify an existing claim:
|
# You may also spacify an existing claim:
|
||||||
# - name: data
|
# - name: data
|
||||||
# type: "existingClaim"
|
# type: "existingClaim"
|
||||||
# claimName: "my-pvc"
|
# claimName: "my-pvc"
|
||||||
# maxVolumes: 0
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
|
|
||||||
|
|
||||||
dataDirs:
|
dataDirs:
|
||||||
- name: data1
|
- name: data1
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
hostPathPrefix: /ssd
|
hostPathPrefix: /ssd
|
||||||
maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
maxVolumes: 0
|
||||||
|
|
||||||
#- name: data2
|
#- name: data2
|
||||||
# type: "persistentVolumeClaim"
|
# type: "persistentVolumeClaim"
|
||||||
|
@ -268,19 +267,30 @@ volume:
|
||||||
# size: "800Gi"
|
# size: "800Gi"
|
||||||
# maxVolumes: 0
|
# maxVolumes: 0
|
||||||
|
|
||||||
|
# idx can be defined by:
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "hostPath"
|
||||||
|
# hostPathPrefix: /ssd
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "persistentVolumeClaim"
|
||||||
|
# size: "20Gi"
|
||||||
|
# storageClass: "local-path-provisioner"
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "existingClaim"
|
||||||
|
# claimName: "myClaim"
|
||||||
|
|
||||||
idx:
|
# same applies to "logs"
|
||||||
type: "hostPath"
|
|
||||||
size: ""
|
|
||||||
storageClass: ""
|
|
||||||
hostPathPrefix: /ssd
|
|
||||||
|
|
||||||
|
idx: ""
|
||||||
|
|
||||||
logs:
|
logs: ""
|
||||||
type: "hostPath"
|
|
||||||
size: ""
|
|
||||||
storageClass: ""
|
|
||||||
hostPathPrefix: /storage
|
|
||||||
|
|
||||||
# limit background compaction or copying speed in mega bytes per second
|
# limit background compaction or copying speed in mega bytes per second
|
||||||
compactionMBps: "50"
|
compactionMBps: "50"
|
||||||
|
|
Loading…
Reference in a new issue