From d32536cf39a2270f4aceca08d25aa455f78afbba Mon Sep 17 00:00:00 2001 From: dandds Date: Wed, 27 Nov 2019 09:57:58 -0500 Subject: [PATCH] Fix ConfigMap to directory mapping. Turns out you can't map multiple K8s resources over the same directory. The K8s secret for the INI file and the ConfigMap for the uWSGI config both map into /opt/atat/atst in the container. This caused errors when the container tried to launch. Instead, we need to specify the full file path for every file we're mapping into that directory to avoid conflicts. --- deploy/azure/azure.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy/azure/azure.yml b/deploy/azure/azure.yml index d7b59f5a..8d46fa4b 100644 --- a/deploy/azure/azure.yml +++ b/deploy/azure/azure.yml @@ -47,7 +47,8 @@ spec: mountPath: "/opt/atat/atst/ssl/pgsslrootcert.crt" subPath: pgsslrootcert.crt - name: uwsgi-config - mountPath: "/opt/atat/atst/" + mountPath: "/opt/atat/atst/uwsgi.ini" + subPath: uwsgi.ini - name: nginx image: nginx:alpine ports: @@ -130,6 +131,10 @@ spec: configMap: name: uwsgi-config defaultMode: 0666 + items: + - key: uwsgi.ini + path: uwsgi.ini + mode: 0644 --- apiVersion: extensions/v1beta1 kind: Deployment