mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Add initContainer to check for postgres up
This commit is contained in:
parent
8408ceffe8
commit
b860c69fd7
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,13 @@ spec:
|
||||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||||
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
||||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||||
|
initContainers:
|
||||||
|
- name: wait-for-postgresql
|
||||||
|
image: postgres
|
||||||
|
args:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- until pg_isready -h {{ .Values.config.db.host }} -p {{ .Values.config.db.port }} -U {{ .Values.config.db.port }}; do echo waiting for database; 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 }}"
|
||||||
|
|
Loading…
Reference in a new issue