Skip to content

Commit dad458b

Browse files
add H2C ingress backend for BYOC (#2506)
* Use H2C for ingress backend
1 parent 5405807 commit dad458b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

iac/provider-gcp/nomad-cluster/network/ingress.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,27 @@ resource "google_compute_backend_service" "ingress" {
5555
}
5656
}
5757

58+
resource "google_compute_backend_service" "h2c_ingress" {
59+
name = "${var.prefix}h2c-ingress"
60+
61+
protocol = "H2C"
62+
port_name = var.ingress_port.name
63+
64+
session_affinity = null
65+
health_checks = [google_compute_health_check.ingress.id]
66+
67+
timeout_sec = var.ingress_timeout_seconds
68+
69+
load_balancing_scheme = "EXTERNAL_MANAGED"
70+
locality_lb_policy = "ROUND_ROBIN"
71+
72+
security_policy = google_compute_security_policy.ingress.id
73+
74+
backend {
75+
group = var.api_instance_group
76+
}
77+
}
78+
5879
resource "google_compute_security_policy" "ingress" {
5980
name = "${var.prefix}ingress"
6081

0 commit comments

Comments
 (0)