From b5a7d339ce336b518aedc11dee442d5ce3513f23 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Sun, 22 Mar 2026 08:34:55 +0200 Subject: [PATCH] fix: pg_isready missing -d flag causing init container loop --- charts/my-recipes-chart/templates/backend-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/my-recipes-chart/templates/backend-deployment.yaml b/charts/my-recipes-chart/templates/backend-deployment.yaml index b7379bd..02d63bd 100644 --- a/charts/my-recipes-chart/templates/backend-deployment.yaml +++ b/charts/my-recipes-chart/templates/backend-deployment.yaml @@ -25,7 +25,7 @@ spec: - -c - | 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..." sleep 2 done