fix: pg_isready missing -d flag causing init container loop
This commit is contained in:
parent
be1226c59e
commit
b5a7d339ce
@ -25,7 +25,7 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
echo "Waiting for database to be ready..."
|
echo "Waiting for database to be ready..."
|
||||||
until pg_isready -h $DB_HOST -U $DB_USER; do
|
until pg_isready -h $DB_HOST -U $DB_USER -d $DB_NAME; do
|
||||||
echo "Database not ready, waiting..."
|
echo "Database not ready, waiting..."
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user