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 }};
|
mount -t overlay -o lowerdir=/extras/{{ join ":/extras/" .shares }},upperdir=/data/overlay-{{ .destName }}-upper,workdir=/data/overlay-{{ .destName }}-work overlay /combined/{{ .destName }};
|
||||||
sleep infinity;
|
sleep infinity;
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
touch /combined/overlays-mounted;
|
||||||
lifecycle:
|
lifecycle:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
|
@ -80,7 +81,7 @@ spec:
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -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 }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: cifs
|
- name: cifs
|
||||||
|
|
Loading…
Reference in New Issue