update preStop hook and terminationGracePeriod

This commit is contained in:
red 2025-07-06 19:03:08 -04:00
parent 2b2ac44019
commit 1eb2a37043

View file

@ -17,7 +17,7 @@ spec:
labels:
app: postgres
spec:
terminationGracePeriodSeconds: 30
terminationGracePeriodSeconds: 60
imagePullSecrets:
- name: registry-credentials
securityContext:
@ -96,6 +96,10 @@ spec:
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 12
lifecycle:
preStop:
exec:
command: ["pg_ctl stop -w -t 60 -m fast"]
volumes:
- name: dshm
emptyDir: