Fixing adherence to GCP instance count variables (#101)
Fixing adherence to GCP instance count variables
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user