anitya/release-monitoring: change deployment strategy to recreate

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2019-01-09 09:28:27 +01:00
parent 2f61db2093
commit 4be5ff27de

View file

@ -15,6 +15,13 @@ items:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
pre:
failurePolicy: Abort
execNewPod:
containerName: release-monitoring-web
command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ]
volumes:
- config-volume
resources: {}
rollingParams:
intervalSeconds: 1
@ -29,7 +36,7 @@ items:
command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ]
volumes:
- config-volume
type: Rolling
type: Recreate
template:
metadata:
creationTimestamp: null