diff --git a/deployment/pods/db-calqul.yml b/deployment/pods/db-calqul.yml index 3dd62b294e605f4c3b6586a7b0649b7414e7a942..de2a156581d58d0ed7b105a4f7795cb0bdb812b0 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}"