(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 }}
|
{{ tuple $envAll "postgresql" "server" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value }}
|
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value }}
|
||||||
|
|
||||||
|
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.server.timeout | default "180" }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "postgresql" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "postgresql" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||||
- name: set-volume-perms
|
- name: set-volume-perms
|
||||||
|
@ -70,6 +70,8 @@ pod:
|
|||||||
termination_grace_period:
|
termination_grace_period:
|
||||||
prometheus_postgresql_exporter:
|
prometheus_postgresql_exporter:
|
||||||
timeout: 30
|
timeout: 30
|
||||||
|
server:
|
||||||
|
timeout: 180
|
||||||
resources:
|
resources:
|
||||||
enabled: false
|
enabled: false
|
||||||
server:
|
server:
|
||||||
|
Loading…
Reference in New Issue
Block a user