Skip to content

Commit

Permalink
Configure number of replicas for app
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-dfe committed Dec 19, 2024
1 parent 8efdcb4 commit cce9653
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
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

0 comments on commit cce9653

Please sign in to comment.