diff --git a/roles/installer/templates/deployments/task.yaml.j2 b/roles/installer/templates/deployments/task.yaml.j2 index 78a36896..dfdf9d2c 100644 --- a/roles/installer/templates/deployments/task.yaml.j2 +++ b/roles/installer/templates/deployments/task.yaml.j2 @@ -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