diff --git a/terraform/aks/app.tf b/terraform/aks/app.tf index 2f47438ce..6691712f3 100644 --- a/terraform/aks/app.tf +++ b/terraform/aks/app.tf @@ -90,6 +90,7 @@ module "api_application" { web_port = 80 probe_path = "/health" replicas = var.api_replicas + max_memory = var.api_max_memory } module "ui_application_configuration" { diff --git a/terraform/aks/variables.tf b/terraform/aks/variables.tf index 93ed9a139..beef1de1c 100644 --- a/terraform/aks/variables.tf +++ b/terraform/aks/variables.tf @@ -79,30 +79,42 @@ variable "api_replicas" { type = number default = 1 } + +variable "api_max_memory" { + type = string + default = "1Gi" +} + variable "ui_replicas" { type = number default = 1 } + variable "postgres_flexible_server_sku" { type = string default = "B_Standard_B1ms" } + variable "postgres_enable_high_availability" { type = bool default = false } + variable "redis_capacity" { type = number default = 1 } + variable "redis_family" { type = string default = "C" } + variable "redis_sku_name" { type = string default = "Standard" } + variable "statuscake_extra_urls" { type = list(string) description = "List of extra URLs for StatusCake, on top of the internal teacherservices.cloud ones" diff --git a/terraform/aks/workspace_variables/production.tfvars.json b/terraform/aks/workspace_variables/production.tfvars.json index 9927d0ad0..b0619fa64 100644 --- a/terraform/aks/workspace_variables/production.tfvars.json +++ b/terraform/aks/workspace_variables/production.tfvars.json @@ -8,6 +8,7 @@ "run_dqt_reporting_service": true, "run_recurring_jobs": true, "api_replicas": 2, + "api_max_memory": "2Gi", "ui_replicas": 2, "postgres_flexible_server_sku": "GP_Standard_D2ds_v4", "postgres_enable_high_availability": true, @@ -15,5 +16,4 @@ "redis_family": "P", "redis_sku_name": "Premium", "statuscake_extra_urls": ["https://teacher-qualifications-api.education.gov.uk/health"] - }