Unverified Commit efd1cb8a authored by Waqar Ahmed's avatar Waqar Ahmed Committed by GitHub

Merge pull request #15 from truenas/nextcloud-waiting-fix

Use nc instead of nslookup while waiting for postgres to come up
parents 32064d07 f3fddff3
...@@ -39,7 +39,7 @@ spec: ...@@ -39,7 +39,7 @@ spec:
initContainers: initContainers:
- name: init-postgresdb - name: init-postgresdb
image: busybox:latest 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 }} imagePullPolicy: {{ .Values.image.pullPolicy }}
containers: containers:
- name: {{ .Chart.Name }} - 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