Privileged to mount, plus mounts.
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
fd5da0635c
commit
203d236188
|
@ -43,6 +43,8 @@ spec:
|
|||
{{- if .Values.persistence.combineShares }}
|
||||
- name: overlaymagic
|
||||
image: busybox
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
|
@ -61,6 +63,16 @@ spec:
|
|||
- /bin/sh
|
||||
- -c
|
||||
- {{ range .Values.persistence.sharesToCombine }}umount /combined/{{ .destName }}; {{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data
|
||||
{{- range .Values.persistence.extraPVCShares }}
|
||||
- mountPath: /extras/{{ .name }}
|
||||
name: {{ .name }}
|
||||
{{- end }}
|
||||
- mountPath: /combined
|
||||
mountPropagation: Bidirectional
|
||||
name: combineRoot
|
||||
{{- end }}
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
|
@ -196,3 +208,7 @@ spec:
|
|||
claimName: {{ $fullName }}-{{ .name }}
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
{{ if .Values.persistence.combineShares }}
|
||||
- name: combineRoot
|
||||
emptyDir: {}
|
||||
{{ end -}}
|
||||
|
|
Loading…
Reference in New Issue