|
@ -45,18 +45,24 @@ spec: |
|
|
priorityClassName: {{ .Values.volume.priorityClassName | quote }} |
|
|
priorityClassName: {{ .Values.volume.priorityClassName | quote }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
enableServiceLinks: false |
|
|
enableServiceLinks: false |
|
|
{{- if .Values.volume.dir_idx }} |
|
|
|
|
|
|
|
|
{{- $initContainers_exists := include "volume.initContainers_exists" . -}} |
|
|
|
|
|
{{- if $initContainers_exists }} |
|
|
initContainers: |
|
|
initContainers: |
|
|
|
|
|
{{- if .Values.volume.dir_idx }} |
|
|
- name: seaweedfs-vol-move-idx |
|
|
- name: seaweedfs-vol-move-idx |
|
|
image: {{ template "volume.image" . }} |
|
|
image: {{ template "volume.image" . }} |
|
|
imagePullPolicy: {{ .Values.global.pullPolicy | default "IfNotPresent" }} |
|
|
|
|
|
|
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy | default "IfNotPresent" }} |
|
|
command: [ '/bin/sh', '-c' ] |
|
|
command: [ '/bin/sh', '-c' ] |
|
|
args: ['if ls {{ .Values.volume.dir }}/*.idx >/dev/null 2>&1; then mv {{ .Values.volume.dir }}/*.idx {{ .Values.volume.dir_idx }}/; fi;'] |
|
|
|
|
|
|
|
|
args: [ 'if ls {{ .Values.volume.dir }}/*.idx >/dev/null 2>&1; then mv {{ .Values.volume.dir }}/*.idx {{ .Values.volume.dir_idx }}/; fi;' ] |
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- name: idx |
|
|
|
|
|
mountPath: {{ .Values.volume.dir_idx }} |
|
|
|
|
|
- name: data |
|
|
|
|
|
mountPath: {{ .Values.volume.dir }} |
|
|
|
|
|
|
|
|
- name: idx |
|
|
|
|
|
mountPath: {{ .Values.volume.dir_idx }} |
|
|
|
|
|
- name: data |
|
|
|
|
|
mountPath: {{ .Values.volume.dir }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
{{- if .Values.volume.initContainers }} |
|
|
|
|
|
{{ tpl .Values.volume.initContainers . | nindent 8 | trim }} |
|
|
|
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
containers: |
|
|
containers: |
|
|
- name: seaweedfs |
|
|
- name: seaweedfs |
|
|