diff options
Diffstat (limited to 'kubernetes/namespaces/web')
-rw-r--r-- | kubernetes/namespaces/web/site/deployment.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kubernetes/namespaces/web/site/deployment.yaml b/kubernetes/namespaces/web/site/deployment.yaml index bdb4073..abaf28d 100644 --- a/kubernetes/namespaces/web/site/deployment.yaml +++ b/kubernetes/namespaces/web/site/deployment.yaml @@ -13,6 +13,19 @@ spec: labels: app: site spec: + initContainers: + - name: migrations + image: ghcr.io/python-discord/site:latest + imagePullPolicy: Always + command: + - sh + - -c + - "poetry run python manage.py migrate" + envFrom: + - secretRef: + name: site-env + securityContext: + readOnlyRootFilesystem: true containers: - name: site image: ghcr.io/python-discord/site:latest |