k8s(minor): switch to uwsgi

This commit is contained in:
Langhammer, Jens 2019-10-01 15:43:06 +02:00
parent 404ed5406d
commit 149ea22a93
2 changed files with 10 additions and 2 deletions

View File

@ -42,6 +42,7 @@ signxml = "*"
urllib3 = {extras = ["secure"],version = "*"}
websocket_client = "*"
structlog = "*"
uwsgi = "*"
[requires]
python_version = "3.7"

View File

@ -54,9 +54,16 @@ spec:
image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
command:
- ./manage.py
- uwsgi
args:
- web
- --http 0.0.0.0:8000
- --wsgi-file passbook/root/wsgi.py
- --master
- --processes 24
- --threads 2
- --offload-threads 4
- --stats 0.0.0.0:8001
- --stats-http
envFrom:
- configMapRef:
name: {{ include "p2.fullname" . }}-config