Merge pull request #717 from rooftopcellist/scale-down-app

Scale down app pod when database is unavailable
This commit is contained in:
Christian Adams
2022-01-07 14:33:58 -05:00
committed by GitHub

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