Switch deployment to recreate to fix bodhi db migrations.

This commit is contained in:
Adam Saleh 2021-11-10 10:45:14 +01:00
parent 934fe31260
commit aa11d465e6

View file

@ -16,7 +16,6 @@ items:
selector:
deploymentconfig: bodhi-web
strategy:
{% if env == "staging" %}
activeDeadlineSeconds: 21600
recreateParams:
mid:
@ -35,19 +34,6 @@ items:
timeoutSeconds: 600
resources: {}
type: Recreate
{% else %}
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
{% endif %}
template:
metadata:
creationTimestamp: null
@ -62,11 +48,7 @@ items:
- name: bodhi-web
image: bodhi-base:latest
command: ["gunicorn"]
{% if env == "staging" %}
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "--preload", "--log-file=-"]
{% else %}
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "--preload", "--log-file=-"]
{% endif %}
ports:
- containerPort: 8080
{% if env == "staging" %}