This commit is contained in:
ivan 2026-04-24 15:28:10 +05:00
parent 833ab06c09
commit 8ef010b09c
3 changed files with 32 additions and 0 deletions

View File

@ -48,6 +48,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
@ -83,6 +90,9 @@ spec:
- name: django-configmap - name: django-configmap
mountPath: /server/config/settings/production.py mountPath: /server/config/settings/production.py
subPath: production.py subPath: production.py
- name: uwsgi-configmap
mountPath: opt/server/uwsgi.ini
subPath: uwsgi.ini
livenessProbe: livenessProbe:
tcpSocket: tcpSocket:

View File

@ -8,3 +8,4 @@ resources:
- backend-deployment.yaml - backend-deployment.yaml
- backend-service.yaml - backend-service.yaml
- django-configmap.yaml - django-configmap.yaml
- uwsgi-configmap.yaml

View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: uwsgi-configmap
namespace: resources
data:
uwsgi.ini: |
[uwsgi]
chdir = /server
module = config.wsgi:application
master = true
master-fifo = /opt/server/uwsgi-backend-server.fifo
processes = 4
http = 0.0.0.0:8000
chmod-socket = 666
vacuum = true
harakiri = 6000
buffer-size = 32768
static-map = /static=/opt/server/static/
static-map = /media=/opt/server/media/