From 73e2b5f0418d7f599306dd6aab195528212f172a Mon Sep 17 00:00:00 2001 From: "Christian Hamel (regio iT)" <158264797+hamelchRIT@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:00:39 +0100 Subject: [PATCH] Update db-deployment.yaml Fix livenessProbe for postgresql - customized username is now used with pg_isready --- helm/frost-server/templates/db-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/frost-server/templates/db-deployment.yaml b/helm/frost-server/templates/db-deployment.yaml index c88f5c307..66c0f6b03 100644 --- a/helm/frost-server/templates/db-deployment.yaml +++ b/helm/frost-server/templates/db-deployment.yaml @@ -60,7 +60,7 @@ spec: command: - /bin/sh - -c - - exec pg_isready -h 127.0.0.1 -p 5432 + - exec pg_isready -U {{ default "postgres" .Values.frost.db.username | quote }} -h 127.0.0.1 -p 5432 initialDelaySeconds: 120 periodSeconds: 10 timeoutSeconds: 5 @@ -71,7 +71,7 @@ spec: command: - /bin/sh - -c - - exec pg_isready -h 127.0.0.1 -p 5432 + - exec pg_isready -U {{ default "postgres" .Values.frost.db.username | quote }} -h 127.0.0.1 -p 5432 initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5