Skip to content

Commit

Permalink
web: Add volume to handle debug logs (#1921)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dsavineau authored Jul 16, 2024
1 parent 041270f commit 36cf9c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/installer/templates/deployments/web.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 36cf9c2

Please sign in to comment.