diff --git a/Pipfile b/Pipfile index 95588a913..7986ff250 100644 --- a/Pipfile +++ b/Pipfile @@ -42,6 +42,7 @@ signxml = "*" urllib3 = {extras = ["secure"],version = "*"} websocket_client = "*" structlog = "*" +uwsgi = "*" [requires] python_version = "3.7" diff --git a/helm/passbook/templates/web-deployment.yaml b/helm/passbook/templates/web-deployment.yaml index 6708e0851..fd0d6b13a 100644 --- a/helm/passbook/templates/web-deployment.yaml +++ b/helm/passbook/templates/web-deployment.yaml @@ -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