-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelm_release_nginx_ingress.tf
41 lines (34 loc) · 1.11 KB
/
helm_release_nginx_ingress.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
resource "helm_release" "nginx_ingress" {
name = "nginx-ingress"
namespace = "kube-system"
repository = "https://kubernetes.github.io/ingress-nginx"
chart = "ingress-nginx"
set {
name = "controller.service.loadBalancerIP"
value = scaleway_lb_ip.nginx_ip.ip_address
}
// enable proxy protocol to get client ip addr instead of loadbalancer one
set {
name = "controller.config.use-proxy-protocol"
value = "true"
}
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/scw-loadbalancer-proxy-protocol-v2"
value = "true"
}
// indicates in which zone to create the loadbalancer
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/scw-loadbalancer-zone"
value = scaleway_lb_ip.nginx_ip.zone
}
// enable to avoid node forwarding
set {
name = "controller.service.externalTrafficPolicy"
value = "Local"
}
// enable this annotation to use cert-manager
//set {
// name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/scw-loadbalancer-use-hostname"
// value = "true"
//}
}