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