-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathlocals.tf
37 lines (34 loc) · 881 Bytes
/
locals.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
locals {
helm_chart = "ingress-nginx"
helm_repository = "https://kubernetes.github.io/ingress-nginx"
loadBalancerIP = var.ip_address == null ? [] : [
{
name = "controller.service.loadBalancerIP"
value = var.ip_address
}
]
metrics_enabled = var.metrics_enabled ? [
{
name = "controller.metrics.enabled"
value = "true"
},
{
name = "controller.metrics.serviceMonitor.enabled"
value = "true"
},
{
name = "controller.metrics.serviceMonitor.additionalLabels.release"
value = "kube-prometheus-stack"
}
] : []
controller_service_nodePorts = var.define_nodePorts ? [
{
name = "controller.service.nodePorts.http"
value = var.service_nodePort_http
},
{
name = "controller.service.nodePorts.https"
value = var.service_nodePort_https
}
] : []
}