From 36cf9c23ea2925db0e667e1f1bfdd88417288105 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 16 Jul 2024 11:58:27 -0400 Subject: [PATCH] web: Add volume to handle debug logs (#1921) When enabling debug web requests, the /var/log/tower directory needs to exist. Rather than just creating that directory in the container image then create an emptyDir volume. Closes: #1485 Signed-off-by: Dimitri Savineau --- roles/installer/templates/deployments/web.yaml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/installer/templates/deployments/web.yaml.j2 b/roles/installer/templates/deployments/web.yaml.j2 index 0e6f78a9..f32020f1 100644 --- a/roles/installer/templates/deployments/web.yaml.j2 +++ b/roles/installer/templates/deployments/web.yaml.j2 @@ -261,6 +261,8 @@ spec: mountPath: "/etc/receptor/work_public_key.pem" subPath: "work-public-key.pem" readOnly: true + - name: {{ ansible_operator_meta.name }}-web-log + mountPath: /var/log/tower {% if development_mode | bool %} - name: awx-devel mountPath: "/awx_devel" @@ -456,6 +458,8 @@ spec: emptyDir: {} - name: receptor-socket emptyDir: {} + - name: {{ ansible_operator_meta.name }}-web-log + emptyDir: {} - name: {{ ansible_operator_meta.name }}-receptor-config configMap: name: '{{ ansible_operator_meta.name }}-{{ deployment_type }}-configmap'