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 = "*"}
|
urllib3 = {extras = ["secure"],version = "*"}
|
||||||
websocket_client = "*"
|
websocket_client = "*"
|
||||||
structlog = "*"
|
structlog = "*"
|
||||||
|
uwsgi = "*"
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.7"
|
python_version = "3.7"
|
||||||
|
|
|
@ -54,9 +54,16 @@ spec:
|
||||||
image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}"
|
image: "docker.beryju.org/passbook/server:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- ./manage.py
|
- uwsgi
|
||||||
args:
|
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:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "p2.fullname" . }}-config
|
name: {{ include "p2.fullname" . }}-config
|
||||||
|
|
Reference in New Issue