Commit 8b7530d3 authored by Waqar Ahmed's avatar Waqar Ahmed

Add init container to nextcloud pod to make sure it's not started until postgres is up

parent 7a148e5a
...@@ -38,6 +38,10 @@ spec: ...@@ -38,6 +38,10 @@ spec:
- name: {{ . }} - name: {{ . }}
{{- end}} {{- end}}
{{- end }} {{- end }}
initContainers:
- name: init-postgresdb
image: busybox:latest
command: ['sh', '-c', "until nslookup {{ template "nextcloud.fullname" . }}-postgres; do echo waiting for postgres; sleep 2; done"]
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment