-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlocals.tf
46 lines (46 loc) · 993 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
38
39
40
41
42
43
44
45
46
locals {
helm_values = [{
traefik = {
deployment = {
replicas = var.replicas
podLabels = {
app = "traefik"
}
}
metrics = {
prometheus = {
service = {
enabled = true
}
serviceMonitor = {
enabled = var.enable_service_monitor
}
}
}
additionalArguments = [
"--serversTransport.insecureSkipVerify=true"
]
logs = {
access = {
enabled = true
}
}
tlsOptions = {
default = {
minVersion = "VersionTLS12"
}
}
ports = var.enable_https_redirection ? {
web = {
redirectTo = {
port = "websecure"
}
}
} : null
resources = {
requests = { for k, v in var.resources.requests : k => v if v != null }
limits = { for k, v in var.resources.limits : k => v if v != null }
}
}
}]
}