From 442b4e437d4df59908af453511b2194fef8f5767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Tue, 16 Nov 2021 21:33:47 +0100 Subject: [PATCH] Do not hard kill deployments To leave them a change to close postgres connections. --- src/runboat/kubefiles/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runboat/kubefiles/deployment.yaml b/src/runboat/kubefiles/deployment.yaml index c583c53..42cc9e7 100644 --- a/src/runboat/kubefiles/deployment.yaml +++ b/src/runboat/kubefiles/deployment.yaml @@ -16,7 +16,8 @@ spec: labels: app: odoo spec: - terminationGracePeriodSeconds: 0 # no need to shutdown gracefully + # let Odoo stop gracefully to disconnect from postgres + terminationGracePeriodSeconds: 30 containers: - name: odoo image: odoo