Updated task.yaml.j2 rsyslog container to have preStop hook (#1422)

Co-authored-by: Stanislav Zaprudskiy <stanislav.zaprudskiy@gmail.com>
This commit is contained in:
rakesh561
2023-06-09 16:33:31 -04:00
committed by GitHub
parent a5e29aefec
commit b1655479d2

View File

@@ -381,6 +381,18 @@ spec:
{% if development_mode | bool %}
- name: awx-devel
mountPath: "/awx_devel"
{% endif %}
{% if termination_grace_period_seconds is defined %}
- name: pre-stop-data
mountPath: /var/lib/pre-stop
- name: pre-stop-scripts
mountPath: /var/lib/pre-stop/scripts
lifecycle:
preStop:
exec:
command:
- bash
- /var/lib/pre-stop/scripts/termination-waiter
{% endif %}
env:
- name: SUPERVISOR_CONFIG_PATH