update preStop hook and terminationGracePeriod
This commit is contained in:
parent
2b2ac44019
commit
1eb2a37043
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: postgres
|
app: postgres
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 60
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-credentials
|
- name: registry-credentials
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
@ -96,6 +96,10 @@ spec:
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 12
|
failureThreshold: 12
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command: ["pg_ctl stop -w -t 60 -m fast"]
|
||||||
volumes:
|
volumes:
|
||||||
- name: dshm
|
- name: dshm
|
||||||
emptyDir:
|
emptyDir:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue