mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 16:59:53 +08:00
Merge pull request #15 from truenas/nextcloud-waiting-fix
Use nc instead of nslookup while waiting for postgres to come up
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user