This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
generated from basisai/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
l7.tf
55 lines (44 loc) · 1.89 KB
/
l7.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module "backend_config" {
count = var.enable_l7_load_balancing ? 1 : 0
source = "./modules/backend"
backend_config = coalesce(var.backend_config, var.release_name)
kubernetes_namespace = var.chart_namespace
kubernetes_labels = var.kubernetes_labels
kubernetes_annotations = var.kubernetes_annotations
timeout_sec = var.timeout_sec
cdn = var.cdn
connection_draining_timeout_sec = var.connection_draining_timeout_sec
health_check = var.health_check
cloud_armor_policy = var.cloud_armor_policy
logging = var.logging
iap = var.iap
session_affinity = var.session_affinity
custom_request_headers = var.custom_request_headers
}
module "frontend" {
count = var.enable_l7_load_balancing ? 1 : 0
source = "./modules/frontend"
project_id = var.project_id
region = var.region
kubernetes_namespace = var.chart_namespace
kubernetes_labels = var.kubernetes_labels
kubernetes_annotations = var.kubernetes_annotations
ingress_name = coalesce(var.ingress_name, var.release_name)
ingress_annotations = var.ingress_annotations
external = var.internet_facing
static_ip = var.static_ip
allow_http = var.allow_http
tls_secrets = var.tls_secrets
pre_shared_certificates = var.pre_shared_certificates
service_name = var.service_name
service_port = var.service_port
managed_certificates = var.managed_certificates
frontend_config = {
name = coalesce(var.frontend_config, var.release_name)
create = true
}
ssl_policy = var.ssl_policy
ssl_policy_settings = var.ssl_policy_settings
ssl_redirect = var.ssl_redirect
wait_for_load_balancer = var.wait_for_load_balancer
}