Skip to content

Commit

Permalink
Set app_replicas to 2 for aks production
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake committed Dec 6, 2023
1 parent 9bd3520 commit 4bcc5e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions terraform/application/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ module "web_application" {
kubernetes_config_map_name = module.application_configuration.kubernetes_config_map_name
kubernetes_secret_name = module.application_configuration.kubernetes_secret_name

replicas = var.app_replicas

docker_image = var.docker_image
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"enable_monitoring": true,
"external_hostname": "apply-for-qts-in-england.education.gov.uk",
"namespace": "tra-production",
"uploads_storage_environment_tag": "Production"
"uploads_storage_environment_tag": "Production",
"app_replicas" : 2
}
5 changes: 5 additions & 0 deletions terraform/application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@ variable "uploads_storage_account_name" {
type = string
default = null
}

variable "app_replicas" {
description = "number of replicas of the web app"
default = 1
}

0 comments on commit 4bcc5e0

Please sign in to comment.