Commit f3fddff3 authored by Waqar Ahmed's avatar Waqar Ahmed

Use nc instead of nslookup while waiting for postgres to come up

Using nslookup, the wait time for nextcloud pod to come up can be up to 1-5 minutes. This is reduced with nc to 5-10 seconds.
parent 2fb46e61
......@@ -39,7 +39,7 @@ spec:
initContainers:
- name: init-postgresdb
image: busybox:latest
command: ['sh', '-c', "until nslookup {{ template "nextcloud.fullname" . }}-postgres; do echo waiting for postgres; sleep 2; done"]
command: ['sh', '-c', "until nc -w 5 -vz {{ template "nextcloud.fullname" . }}-postgres 5432; do echo waiting for postgres; sleep 2; done"]
imagePullPolicy: {{ .Values.image.pullPolicy }}
containers:
- name: {{ .Chart.Name }}
......
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