Skip to content
Snippets Groups Projects
Commit 0e6268d2 authored by egon w. stemle's avatar egon w. stemle
Browse files

Add initContainers as dependency check

Lately, we encountered hick-ups when the dspace container comes up but
the postgres container is still missing (although the containers will
restart until both start in the right order).

Here we add one `initContainers` that will poll the postgres db until
success.

Address #60
parent dbf32d61
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,12 @@ spec:
labels:
io.kompose.service: dspace
spec:
initContainers:
- image: postgres
name: clarin-dspace-check-db-ready
command: ['sh', '-c',
'until pg_isready -h postgres -p 5432;
do echo waiting for database; sleep 2; done;']
containers:
- env:
- name: DSPACE_USER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment