++
This commit is contained in:
parent
28dde42d3a
commit
89c65541b0
@ -89,6 +89,13 @@ spec:
|
|||||||
- key: production.py
|
- key: production.py
|
||||||
path: production.py
|
path: production.py
|
||||||
defaultMode: 420
|
defaultMode: 420
|
||||||
|
- name: uwsgi-configmap
|
||||||
|
configMap:
|
||||||
|
name: uwsgi-configmap
|
||||||
|
items:
|
||||||
|
- key: uwsgi.ini
|
||||||
|
path: uwsgi.ini
|
||||||
|
defaultMode: 420
|
||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/backend:production_a96dead0
|
image: cr.yandex/crp3ccidau046kdj8g9q/backend:production_a96dead0
|
||||||
@ -202,5 +209,8 @@ spec:
|
|||||||
- name: django-configmap
|
- name: django-configmap
|
||||||
mountPath: /opt/sarex/config/settings/production.py
|
mountPath: /opt/sarex/config/settings/production.py
|
||||||
subPath: production.py
|
subPath: production.py
|
||||||
|
- name: uwsgi-configmap
|
||||||
|
mountPath: /opt/sarex/uwsgi.ini
|
||||||
|
subPath: uwsgi.ini
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
|
|||||||
@ -14,3 +14,4 @@ resources:
|
|||||||
- srx-admin-deployment.yaml
|
- srx-admin-deployment.yaml
|
||||||
- srx-admin-service.yaml
|
- srx-admin-service.yaml
|
||||||
- nginx-configmap.yaml
|
- nginx-configmap.yaml
|
||||||
|
- uwsgi-configmap.yaml
|
||||||
|
|||||||
30
apps/django/base/uwsgi-configmap.yaml
Normal file
30
apps/django/base/uwsgi-configmap.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: uwsgi-configmap
|
||||||
|
namespace: django
|
||||||
|
data:
|
||||||
|
uwsgi.ini: |
|
||||||
|
[uwsgi]
|
||||||
|
module = config.wsgi:application
|
||||||
|
DJANGO_SETTINGS_MODULE = config.settings.production
|
||||||
|
http = 0.0.0.0:8000
|
||||||
|
processes = 16
|
||||||
|
master = true
|
||||||
|
vacuum = true
|
||||||
|
enable-threads = true
|
||||||
|
buffer-size = 65535
|
||||||
|
stats = :3031
|
||||||
|
stats-http = true
|
||||||
|
memory-report = true
|
||||||
|
lazy-apps = true
|
||||||
|
listen = 128
|
||||||
|
disable-write-exception= 0
|
||||||
|
harakiri = 300
|
||||||
|
socket-timeout = 300
|
||||||
|
chunked-input-timeout = 300
|
||||||
|
http-timeout = 300
|
||||||
|
worker-reload-mercy = 240
|
||||||
|
mule-reload-mercy = 240
|
||||||
|
static-map = /static=/opt/sarex/sarex/static/
|
||||||
|
static-map = /media=/media/
|
||||||
Loading…
Reference in New Issue
Block a user