From 74e38cf89f9a6a936101577c73a256c1051e9be9 Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Levallois <pierregilles.levallois@gmail.com> Date: Tue, 16 Jul 2024 11:10:15 +0200 Subject: [PATCH] udate probes --- deployment/pods/db-calqul.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/deployment/pods/db-calqul.yml b/deployment/pods/db-calqul.yml index 3dd62b2..de2a156 100644 --- a/deployment/pods/db-calqul.yml +++ b/deployment/pods/db-calqul.yml @@ -33,15 +33,27 @@ spec: - containerPort: 5432 protocol: TCP readinessProbe: - tcpSocket: - port: 5432 + exec: + command: + - bash + - '-c' + - pg_isready initialDelaySeconds: 15 - periodSeconds: 10 + timeoutSeconds: 5 + periodSeconds: 30 + successThreshold: 1 + failureThreshold: 6 livenessProbe: - tcpSocket: - port: 5432 + exec: + command: + - bash + - '-c' + - pg_isready initialDelaySeconds: 15 - periodSeconds: 20 + timeoutSeconds: 5 + periodSeconds: 30 + successThreshold: 1 + failureThreshold: 6 env: - name: POSTGRES_DB value: "${POSTGRES_DB}" -- GitLab