mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
FPDC : Add Pod-based life hook to manage database migration
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
@@ -4,15 +4,28 @@ kind: DeploymentConfig
|
||||
metadata:
|
||||
labels:
|
||||
app: fpdc
|
||||
service: fpdc
|
||||
name: fpdc
|
||||
service: fpdc
|
||||
name: fpdc
|
||||
spec:
|
||||
replicas: 2
|
||||
replicas: 1
|
||||
selector:
|
||||
app: fpdc
|
||||
deploymentconfig: fpdc
|
||||
strategy:
|
||||
resources: {}
|
||||
type: Recreate
|
||||
recreateParams:
|
||||
mid:
|
||||
failurePolicy: Abort
|
||||
execNewPod:
|
||||
containerName: fpdc
|
||||
command: [ "django-admin", "migrate", "--no-input"]
|
||||
env:
|
||||
- name: PYTHONPATH
|
||||
value: /opt/app-root/src
|
||||
- name: DJANGO_SETTINGS_MODULE
|
||||
value: fpdc.settings.prod
|
||||
volumes:
|
||||
- config-volume
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user