Skip to content

Commit

Permalink
Merge pull request #4334 from DFE-Digital/maintenance_page_send_traffic
Browse files Browse the repository at this point in the history
Add send_traffic for maintenace page
  • Loading branch information
johnake authored Jul 3, 2024
2 parents 04732b5 + 5c20b7e commit 836cd55
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 40 deletions.
80 changes: 40 additions & 40 deletions terraform/aks/.terraform.lock.hcl

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

2 changes: 2 additions & 0 deletions terraform/aks/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ module "web_application" {
max_memory = each.value.max_memory
replicas = each.value.replicas
probe_path = "/ping"

send_traffic_to_maintenance_page = var.send_traffic_to_maintenance_page
}

module "worker_application" {
Expand Down
5 changes: 5 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ variable "alert_window_size" {
default = "PT5M"
}

variable "send_traffic_to_maintenance_page" {
default = false
description = "During a maintenance operation, keep sending traffic to the maintenance page instead of resetting the ingress"
}

variable "namespace" {
type = string
}
Expand Down

0 comments on commit 836cd55

Please sign in to comment.