Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set app_replicas to 2 for production #1848

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions terraform/application/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module "web_application" {
kubernetes_secret_name = module.application_configuration.kubernetes_secret_name

docker_image = var.docker_image
replicas = var.app_replicas
}

module "worker_application" {
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
Loading