Fix DB pod

This commit is contained in:
dvirlabs 2026-02-02 20:05:26 +02:00
parent 5d1b32d7c6
commit 93560892f9

View File

@ -75,12 +75,13 @@ spec:
# Health probes aligned with tasko-chart approach # Health probes aligned with tasko-chart approach
# Use TCP localhost instead of Unix socket to avoid permission issues # Use TCP localhost instead of Unix socket to avoid permission issues
# Fixed shell variable expansion: $POSTGRES_USER not $(POSTGRES_USER) # Fixed shell variable expansion: $POSTGRES_USER not $(POSTGRES_USER)
# Specify database name to avoid "database invy_user does not exist" error
startupProbe: startupProbe:
exec: exec:
command: command:
- sh - sh
- -c - -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 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 5 timeoutSeconds: 5
@ -90,7 +91,7 @@ spec:
command: command:
- sh - sh
- -c - -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 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 5
@ -100,7 +101,7 @@ spec:
command: command:
- sh - sh
- -c - -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 initialDelaySeconds: 5
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 3 timeoutSeconds: 3