Fixing adherence to GCP instance count variables (#101)

Fixing adherence to GCP instance count variables
This commit is contained in:
Aaron Levy
2025-09-05 10:32:12 -05:00
committed by GitHub
parent 3ee9106631
commit 68947da84e
2 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -63,12 +63,14 @@ module "fleet-service" {
}
ingress = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
timeout = "300s"
service_scaling = {
min_instance_count = 0
min_instance_count = var.fleet_config.min_instance_count
}
template_scaling = {
min_instance_count = 0
max_instance_count = 0
min_instance_count = 0 # Google suggests using service-level minimum instance count
max_instance_count = var.fleet_config.max_instance_count
}
containers = [
@@ -222,4 +224,4 @@ resource "google_cloud_run_v2_service_iam_member" "allow_lb_invoker" {
name = module.fleet-service.service_name
role = "roles/run.invoker"
member = "allUsers"
}
}
+3 -3
View File
@@ -26,9 +26,9 @@ module "fleet_lb" {
# Backend Configuration
backends = {
default = {
description = "Backend for Fleet Cloud Run service"
enable_cdn = false # Set to true if you want Cloud CDN
protocol = "HTTP"
description = "Backend for Fleet Cloud Run service"
enable_cdn = false # Set to true if you want Cloud CDN
protocol = "HTTP"
groups = [
{
group = google_compute_region_network_endpoint_group.neg.id