From 93560892f98e130f79645af6289f311550ef9379 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Mon, 2 Feb 2026 20:05:26 +0200 Subject: [PATCH] Fix DB pod --- charts/invy-chart/templates/db-statefulset.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/invy-chart/templates/db-statefulset.yaml b/charts/invy-chart/templates/db-statefulset.yaml index e5293e4..2a11b4a 100644 --- a/charts/invy-chart/templates/db-statefulset.yaml +++ b/charts/invy-chart/templates/db-statefulset.yaml @@ -75,12 +75,13 @@ spec: # Health probes aligned with tasko-chart approach # Use TCP localhost instead of Unix socket to avoid permission issues # Fixed shell variable expansion: $POSTGRES_USER not $(POSTGRES_USER) + # Specify database name to avoid "database invy_user does not exist" error startupProbe: exec: command: - sh - -c - - pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER" + - pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER" -d "$POSTGRES_DB" initialDelaySeconds: 10 periodSeconds: 5 timeoutSeconds: 5 @@ -90,7 +91,7 @@ spec: command: - sh - -c - - pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER" + - pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER" -d "$POSTGRES_DB" initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 @@ -100,7 +101,7 @@ spec: command: - sh - -c - - pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER" + - pg_isready -h 127.0.0.1 -p 5432 -U "$POSTGRES_USER" -d "$POSTGRES_DB" initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 3