Skip to content

Commit

Permalink
Merge pull request #114 from DFE-Digital/1995-set-deployment-stragegy…
Browse files Browse the repository at this point in the history
…-to-recreate-for-non-web-deployments

[1995] Set deployment stragegy to recreate for non web deployments
  • Loading branch information
saliceti authored Aug 23, 2024
2 parents 780680a + 66b4ac2 commit ba44de3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aks/application/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ resource "kubernetes_deployment" "main" {
}
}

strategy {
type = var.is_web ? "RollingUpdate" : "Recreate"
}

template {
metadata {
labels = merge({ app = local.app_name }, local.gcp_wif_label)
Expand Down

0 comments on commit ba44de3

Please sign in to comment.