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

Configure number of replicas for app #207

Merged
merged 1 commit into from
Dec 19, 2024
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
2 changes: 2 additions & 0 deletions terraform/application/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions terraform/application/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module "web_application" {
kubernetes_secret_name = module.application_configuration.kubernetes_secret_name
web_port = 8080
probe_path = "/"
replicas = var.replicas

docker_image = var.docker_image
}
3 changes: 2 additions & 1 deletion terraform/application/config/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"environment": "production",
"external_url": "https://technical-guidance.education.gov.uk/",
"enable_monitoring": true,
"statuscake_contact_groups": [282453]
"statuscake_contact_groups": [282453],
"replicas": 2
}
4 changes: 4 additions & 0 deletions terraform/application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ variable "config_short" {
variable "service_name" {
description = "Full name of the service. Lowercase and hyphen separated"
}
variable "replicas" {
default = 1
description = "Number of replicas for deployment"
}
variable "service_short" {
description = "Short name to identify the service. Up to 6 charcters."
}
Expand Down
Loading