use new upgrade database strategies
This commit is contained in:
parent
d57a7c3a00
commit
e836860eb1
1 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,19 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
app: waiverdb
|
app: waiverdb
|
||||||
service: web
|
service: web
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
strategy:
|
||||||
|
type: Rolling
|
||||||
|
rollingParams:
|
||||||
|
pre:
|
||||||
|
failurePolicy: Abort
|
||||||
|
execNewPod:
|
||||||
|
containerName: web
|
||||||
|
command: [ /bin/sh, -i, -c, "waiverdb wait-for-db && waiverdb db upgrade" ]
|
||||||
|
volumes:
|
||||||
|
- config-volume
|
||||||
|
- secret-volume
|
||||||
|
{% endif %}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue