我有这个工作资源配置来使用terraform安装helm nginx ingress。
resource "helm_release" "nginx" {
name = "nginx"
repository = "https://charts.bitnami.com/bitnami"
chart = "nginx-ingress-controller"
namespace = "nginx"
set {
name = "serviceAccount.name"
value = "myaccount"
}
set {
name = "rbac.create"
value = "true"
}
set {
name = "service.loadBalancerIP"
value = "1.2.3.4"
}
set {
name = "service.externalTrafficPolicy"
value = "Local"
}
set {
name = "replicaCount"
value = 1
}
set {
type = "string"
name = "service.annotations.service\.beta\.kubernetes\.io/azure-load-balancer-resource-group"
value = "myname"
}
}
我不知道如何从这里更改一些nginx默认值,例如proxy_buffer_size
或large_client_header_buffers
,默认情况下,这些默认值对于一些ID服务器的大型ID cookie来说是不够的。
您可以使用controller.config.key
set {
name = "controller.config.proxy-body-size"
value = "100m"
}
请注意,您可能需要转义一些字符:
set {
name = "controller.config.custom-http-errors"
value = "502\,503\,504\,404"
}