diff options
author | Othman Touijer <othman.touijer@soprasteria.com> | 2021-03-05 08:26:51 +0100 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-03-21 13:03:45 +0000 |
commit | 2f3cfb6e20d91f6e6eb0861ded5a96ab17190d49 (patch) | |
tree | b03e8b7ef9edcf2b7fea47d060c9534b39ac310e /kubernetes/contrib/components/awx/templates/statefulset.yaml | |
parent | fde94076e689727e8a2c3c5147ce1242dc225f87 (diff) |
[CONTRIB][AWX] Fix Web Interface
Add NGINX configuration so it can be run as non root.
Issue-ID: INT-1858
Signed-off-by: Othman Touijer <othman.touijer@soprasteria.com>
Change-Id: I8e313a49db0dfadf5c180c4415c7237ffd3635f9
Diffstat (limited to 'kubernetes/contrib/components/awx/templates/statefulset.yaml')
-rw-r--r-- | kubernetes/contrib/components/awx/templates/statefulset.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kubernetes/contrib/components/awx/templates/statefulset.yaml b/kubernetes/contrib/components/awx/templates/statefulset.yaml index 46747cd85f..1f2c093742 100644 --- a/kubernetes/contrib/components/awx/templates/statefulset.yaml +++ b/kubernetes/contrib/components/awx/templates/statefulset.yaml @@ -82,6 +82,10 @@ spec: name: awx-secret-key readOnly: true subPath: SECRET_KEY + - mountPath: /etc/nginx/nginx.conf + name: awx-nginx-conf + subPath: "nginx.conf" + - command: ["/bin/sh","-c"] args: ["/usr/bin/launch_awx_task.sh"] env: @@ -109,6 +113,9 @@ spec: name: awx-secret-key readOnly: true subPath: SECRET_KEY + - mountPath: /etc/nginx/nginx.conf + name: awx-nginx-conf + subPath: "nginx.conf" - env: - name: MY_POD_IP valueFrom: @@ -209,5 +216,12 @@ spec: path: rabbitmq_definitions.json name: {{ include "common.fullname" . }}-rabbitmq name: rabbitmq-config + - configMap: + defaultMode: 420 + items: + - key: nginx.conf + path: nginx.conf + name: {{ include "common.fullname" . }}-nginx-conf + name: awx-nginx-conf imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |