fix: address review of the Postgres move
- close the pool on SIGTERM before exiting; query_timeout on the pool - SIGTERM test fails instead of hanging; test cleanup in finally - preStop sleep so rollouts don't drop form posts; Postgres startupProbe - CI step timeout, clear error if test Postgres never starts, remove test image - export stops on SQL errors; README note on changing the DB password Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
This commit is contained in:
1 parent
20e07e9d80
commit
ad5996283e
7 files changed
+42
-14
No files matched your search
@@ -59,6 +59,12 @@ spec:
|
||||
ports:
|
||||
- name: postgres
|
||||
containerPort: 5432
|
||||
# Allow up to 5 minutes for crash recovery before liveness can restart the pod.
|
||||
startupProbe:
|
||||
exec:
|
||||
command: ["pg_isready", "-U", "ins", "-d", "ins"]
|
||||
periodSeconds: 10
|
||||
failureThreshold: 30
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["pg_isready", "-U", "ins", "-d", "ins"]
|
||||
|
||||
@@ -67,6 +67,12 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
# Keep serving for a moment after SIGTERM while Traefik drops this pod from its endpoints,
|
||||
# so a rollout doesn't turn a form submission into a 502.
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["sleep", "3"]
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
|
||||
Reference in new issue
Block a user