Skip to content

Commit

Permalink
Set app_replicas to 2 for production
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake committed Dec 6, 2023
1 parent 9bd3520 commit afbf672
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/application/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ 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
@@ -1,5 +1,6 @@
{
"app_environment": "production",
"app_replicas": 2,
"cluster": "production",
"dqt_api_url": "https://teacher-qualifications-api.education.gov.uk",
"enable_monitoring": true,
Expand Down
6 changes: 6 additions & 0 deletions terraform/application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ variable "app_environment" {
type = string
}

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

variable "app_suffix" {
type = string
default = ""
Expand Down

0 comments on commit afbf672

Please sign in to comment.