diff options
author | 2024-06-07 21:34:52 +0100 | |
---|---|---|
committer | 2024-06-07 21:34:52 +0100 | |
commit | a51870c8f49a47f50cc87a4de5f08173d9627d7e (patch) | |
tree | 28547c4ff2f2c7f223f34a0d2ef01d6490425d0a | |
parent | Remove unnecessary shell execution for migration initContainer (diff) |
Update from command to args in site deployment
Kubernetes renames ENTRYPOINT in Docker images to command and any
additional args go in `args` (confusing, I know!)
This ensures that we run within the context of Poetry so can reach
Django and other installed requirements when running migrations.
-rw-r--r-- | kubernetes/namespaces/web/site/deployment.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/namespaces/web/site/deployment.yaml b/kubernetes/namespaces/web/site/deployment.yaml index 46abaf4..26f00be 100644 --- a/kubernetes/namespaces/web/site/deployment.yaml +++ b/kubernetes/namespaces/web/site/deployment.yaml @@ -17,7 +17,7 @@ spec: - name: migrations image: ghcr.io/python-discord/site:latest imagePullPolicy: Always - command: + args: - python - manage.py - migrate |