Skip to content
Open
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
11 changes: 10 additions & 1 deletion infrastructure/commons/istio/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,14 @@ resource "helm_release" "istio_ingressgateway" {

values = [local.helm_values]


set = [
{
name = "replicaCount"
value = var.istio_ingressgateway_replicas
},
{
name = "autoscaling.minReplicas"
value = var.istio_ingressgateway_replicas
},
]
}
11 changes: 11 additions & 0 deletions infrastructure/commons/istio/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ variable "istiod_replicas" {
}
}

variable "istio_ingressgateway_replicas" {
description = "Number of istio-ingressgateway replicas. Set to 2+ to avoid PDB blocking node drains. Applied to both replicaCount and autoscaling.minReplicas to prevent the HPA from scaling back to 1. The Istio gateway Helm chart installs the gateway with a default PodDisruptionBudget (minAvailable=1), so a single replica blocks node rolling updates with PodEvictionFailure — same class of bug as the istiod single-replica issue."
type = number
default = 2

validation {
condition = var.istio_ingressgateway_replicas >= 1
error_message = "istio_ingressgateway_replicas must be at least 1."
}
}

###############################################################################
# SERVICE CONFIGURATION
###############################################################################
Expand Down