Add JSON logging back for NGINX container.

This configures the NGINX container to log in JSON. It also updates the
K8s config so that we mount all of the key/value pairs available in the
atst-nginx ConfigMap as files in "/etc/nginx/conf.d" inside the
container. This simplifies the config a little.
This commit is contained in:
dandds
2019-11-14 13:25:30 -05:00
committed by tomdds
parent 699176fc91
commit 26c5b5ea7f
2 changed files with 25 additions and 7 deletions

View File

@@ -62,8 +62,7 @@ spec:
name: auth
volumeMounts:
- name: nginx-config
mountPath: "/etc/nginx/conf.d/atst.conf"
subPath: atst.conf
mountPath: "/etc/nginx/conf.d/"
- name: uwsgi-socket-dir
mountPath: "/var/run/uwsgi"
- name: nginx-htpasswd
@@ -90,9 +89,6 @@ spec:
- name: nginx-config
configMap:
name: atst-nginx
items:
- key: nginx-config
path: atst.conf
- name: uwsgi-socket-dir
emptyDir:
medium: Memory