Skip to content

Commit

Permalink
feat(workflow-dev): add preStop hook to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Nov 21, 2016
1 parent 740fbe3 commit ea9e648
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workflow-dev/tpl/deis-database-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea9e648

Please sign in to comment.