++
This commit is contained in:
parent
833ab06c09
commit
8ef010b09c
@ -48,6 +48,13 @@ spec:
|
||||
- key: production.py
|
||||
path: production.py
|
||||
defaultMode: 420
|
||||
- name: uwsgi-configmap
|
||||
configMap:
|
||||
name: uwsgi-configmap
|
||||
items:
|
||||
- key: uwsgi.ini
|
||||
path: uwsgi.ini
|
||||
defaultMode: 420
|
||||
|
||||
containers:
|
||||
- name: backend
|
||||
@ -83,6 +90,9 @@ spec:
|
||||
- name: django-configmap
|
||||
mountPath: /server/config/settings/production.py
|
||||
subPath: production.py
|
||||
- name: uwsgi-configmap
|
||||
mountPath: opt/server/uwsgi.ini
|
||||
subPath: uwsgi.ini
|
||||
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
|
||||
@ -8,3 +8,4 @@ resources:
|
||||
- backend-deployment.yaml
|
||||
- backend-service.yaml
|
||||
- django-configmap.yaml
|
||||
- uwsgi-configmap.yaml
|
||||
|
||||
21
apps/resources/base/uwsgi-configmap.yaml
Normal file
21
apps/resources/base/uwsgi-configmap.yaml
Normal 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/
|
||||
Loading…
Reference in New Issue
Block a user