k8s(minor): switch to uwsgi
This commit is contained in:
parent
404ed5406d
commit
149ea22a93
1
Pipfile
1
Pipfile
|
@ -42,6 +42,7 @@ signxml = "*"
|
|||
urllib3 = {extras = ["secure"],version = "*"}
|
||||
websocket_client = "*"
|
||||
structlog = "*"
|
||||
uwsgi = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.7"
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue