From ea9e648bf535cc8def497256597c464ce962ea1f Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Mon, 21 Nov 2016 09:59:52 -0800 Subject: [PATCH] feat(workflow-dev): add preStop hook to postgres --- workflow-dev/tpl/deis-database-deployment.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/workflow-dev/tpl/deis-database-deployment.yaml b/workflow-dev/tpl/deis-database-deployment.yaml index 5a5d630..fd3660a 100644 --- a/workflow-dev/tpl/deis-database-deployment.yaml +++ b/workflow-dev/tpl/deis-database-deployment.yaml @@ -48,6 +48,13 @@ spec: - is_running initialDelaySeconds: 30 timeoutSeconds: 1 + lifecycle: + preStop: + exec: + commmand: + - gosu + - postgres + - do_backup volumeMounts: - name: database-creds mountPath: /var/run/secrets/deis/database/creds