Enable uwsgi logging again.

Updates the K8s config to enable extended uWSGI JSON logging again. This
commit updates the name of the ConfigMap for the uWSGI config to avoid
confusion.
This commit is contained in:
dandds
2019-11-25 11:09:18 -05:00
parent eab8cbdd56
commit 4d4c873c73
3 changed files with 10 additions and 3 deletions

View File

@@ -46,6 +46,8 @@ spec:
- name: pgsslrootcert - name: pgsslrootcert
mountPath: "/opt/atat/atst/ssl/pgsslrootcert.crt" mountPath: "/opt/atat/atst/ssl/pgsslrootcert.crt"
subPath: pgsslrootcert.crt subPath: pgsslrootcert.crt
- name: uwsgi-config
mountPath: "/opt/atat/atst/"
- name: nginx - name: nginx
image: nginx:alpine image: nginx:alpine
ports: ports:
@@ -124,6 +126,10 @@ spec:
configMap: configMap:
name: acme-challenges name: acme-challenges
defaultMode: 0666 defaultMode: 0666
- name: uwsgi-config
configMap:
name: uwsgi-config
defaultMode: 0666
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment

View File

@@ -1,7 +1,7 @@
namespace: atat namespace: atat
resources: resources:
- azure.yml - azure.yml
- atst-configmap.yml - uwsgi-config.yml
- atst-envvars-configmap.yml - atst-envvars-configmap.yml
- atst-nginx-configmap.yml - atst-nginx-configmap.yml
- atst-worker-envvars-configmap.yml - atst-worker-envvars-configmap.yml

View File

@@ -2,10 +2,10 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: atst-config name: uwsgi-config
namespace: atat namespace: atat
data: data:
uwsgi-config: |- uwsgi.ini: |-
[uwsgi] [uwsgi]
callable = app callable = app
module = app module = app
@@ -14,6 +14,7 @@ data:
plugin = logfile plugin = logfile
virtualenv = /opt/atat/atst/.venv virtualenv = /opt/atat/atst/.venv
chmod-socket = 666 chmod-socket = 666
chown-socket = atst:atat
; logger config ; logger config