wait for the mount.
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
3cfe695b76
commit
c4567d0e05
|
@ -57,6 +57,7 @@ spec:
|
|||
mount -t overlay -o lowerdir=/extras/{{ join ":/extras/" .shares }},upperdir=/data/overlay-{{ .destName }}-upper,workdir=/data/overlay-{{ .destName }}-work overlay /combined/{{ .destName }};
|
||||
sleep infinity;
|
||||
{{- end }}
|
||||
touch /combined/overlays-mounted;
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
|
@ -80,7 +81,7 @@ spec:
|
|||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- cd /scripts ; sh ./k8s.sh
|
||||
- {{ if .Values.persistence.combineShares }}until [ -f /combined/overlays-mounted ]; do sleep 5; done; {{ end }}cd /scripts ; sh ./k8s.sh
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: cifs
|
||||
|
|
Loading…
Reference in New Issue