-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnginx.tf
More file actions
35 lines (32 loc) · 809 Bytes
/
nginx.tf
File metadata and controls
35 lines (32 loc) · 809 Bytes
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
resource "helm_release" "nginx" {
count = var.ingress_nginx_enable ? 1 : 0
name = var.nginx_name
repository = "https://kubernetes.github.io/ingress-nginx"
chart = "ingress-nginx"
namespace = "nginx"
create_namespace = true
version = var.ingress_nginx_version
values = [
var.nginx_yml_file != null ?
file(var.nginx_yml_file) :
file("${path.module}/nginx.yml")
]
set = [
{
name = "controller.ingressClass"
value = var.nginx_name
},
{
name = "controller.keda.minReplicas"
value = var.nginx_min_replicas
},
{
name = "controller.keda.maxReplicas"
value = var.nginx_max_replicas
}
]
depends_on = [
helm_release.keda,
helm_release.prometheus,
]
}