mirror of
				https://gitea.invidious.io/iv-org/invidious
				synced 2025-06-05 23:29:12 +02:00 
			
		
		
		
	Add initContainer to check for postgres up
This commit is contained in:
		| @@ -23,6 +23,13 @@ spec: | ||||
|         runAsUser: {{ .Values.securityContext.runAsUser }} | ||||
|         runAsGroup: {{ .Values.securityContext.runAsGroup }} | ||||
|         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: | ||||
|       - name: {{ .Chart.Name }} | ||||
|         image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user