40 lines
No EOL
1.1 KiB
HCL
40 lines
No EOL
1.1 KiB
HCL
resource "helm_release" "ingress_nginx" {
|
|
name = "ingress-nginx"
|
|
repository = "https://kubernetes.github.io/ingress-nginx"
|
|
chart = "ingress-nginx"
|
|
version = "4.12.2"
|
|
namespace = kubernetes_namespace.nginx.metadata[0].name
|
|
|
|
values = [
|
|
<<EOF
|
|
controller:
|
|
config:
|
|
use-proxy-protocol: "true"
|
|
allow-snippet-annotations: "true"
|
|
compute-full-forwarded-for: "true"
|
|
use-proxy-protocol: "true"
|
|
use-forwarded-headers: "true"
|
|
enable-real-ip: "true"
|
|
forwarded-for-header: "proxy_protocol"
|
|
proxy-connect-timeout: "10"
|
|
proxy-next-upstream: "error timeout http_502 http_503 http_504"
|
|
proxy-next-upstream-timeout: "10"
|
|
proxy-next-upstream-tries: "5"
|
|
retry-non-idempotent: "true"
|
|
proxy-body-size: "5M"
|
|
client-body-buffer-size: "128K"
|
|
replicaCount: 1
|
|
service:
|
|
type: LoadBalancer
|
|
externalTrafficPolicy: Local
|
|
ipFamilyPolicy: SingleStack
|
|
ipFamilies:
|
|
- IPv4
|
|
annotations:
|
|
lb.stackit.cloud/external-address: ${stackit_public_ip.public_ip.ip}
|
|
lb.stackit.cloud/tcp-proxy-protocol: "true"
|
|
EOF
|
|
]
|
|
|
|
timeout = 600
|
|
} |