(postgres) Add override for termination period
- Allow configuration of the termination grace period for the Patroni pod with a default of 180s to ensure the database has time to gracefully spin down, even on slow disk. Change-Id: I420cbd601bbffa50217b717bd4a636d48d324617
This commit is contained in:
parent
f0306ce33d
commit
5a7693cd62
@ -132,6 +132,8 @@ spec:
|
||||
{{ tuple $envAll "postgresql" "server" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value }}
|
||||
|
||||
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.server.timeout | default "180" }}
|
||||
initContainers:
|
||||
{{ tuple $envAll "postgresql" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
- name: set-volume-perms
|
||||
|
@ -70,6 +70,8 @@ pod:
|
||||
termination_grace_period:
|
||||
prometheus_postgresql_exporter:
|
||||
timeout: 30
|
||||
server:
|
||||
timeout: 180
|
||||
resources:
|
||||
enabled: false
|
||||
server:
|
||||
|
Loading…
Reference in New Issue
Block a user