Skip to content

Commit

Permalink
Merge pull request #131 from danielpassos/AEROGEAR-8778
Browse files Browse the repository at this point in the history
Add recreate strategy to postgres
  • Loading branch information
Wei Li authored Mar 14, 2019
2 parents 0148104 + c406489 commit 38cdd62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions roles/provision-keycloak-apb/tasks/provision-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
name: '{{ postgres_service_name }}'
namespace: '{{ namespace }}'
replicas: 1
spec_strategy_type: '{{ postgres_strategy_type }}'
spec_strategy_active_deadline_seconds: '{{ postgres_strategy_active_deadline_seconds }}'
spec_strategy_recreate_params:
timeoutSeconds: '{{ postgres_strategy_recreate_timeout }}'
labels:
app: '{{ app_name }}'
service: '{{ postgres_service_name }}'
Expand Down
5 changes: 4 additions & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ postgres_secret_name: keycloak-postgres-secret
keycloak_pv_claim_name: keycloak-metrics-pvc
postgres_pv_claim_name: keycloak-postgres-pvc
keycloak_admin_realm_name: master
encode_asb_binding: yes
encode_asb_binding: yes
postgres_strategy_type: "Recreate"
postgres_strategy_active_deadline_seconds: "21600"
postgres_strategy_recreate_timeout: "600"

0 comments on commit 38cdd62

Please sign in to comment.