Scale down app pod when database is unavailable

This commit is contained in:
Christian M. Adams
2022-01-04 17:07:39 -05:00
parent 4a43de5101
commit fdbe607189

View File

@@ -99,6 +99,10 @@
definition: "{{ lookup('template', 'postgres.yaml.j2') }}"
register: create_statefulset_result
- name: Scale down Deployment for migration
include_tasks: scale_down_deployment.yml
when: create_statefulset_result.changed
rescue:
- name: Scale down Deployment for migration
include_tasks: scale_down_deployment.yml