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 0ded3cb
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 143 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@prettier/plugin-ruby": "^4.0.3",
"prettier": "^3.1.0"
"prettier": "3.1.0"
},
"prettier": {
"plugins": [
Expand Down
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
@@ -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
7 changes: 7 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 Expand Up @@ -68,3 +74,4 @@ variable "uploads_storage_account_name" {
type = string
default = null
}

Loading

0 comments on commit 0ded3cb

Please sign in to comment.