You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Switched back to using ELB instead of NLB due to various issues. Also added the ability to modify proxy protocol and traffic policy settings and return the nginx request id to the front end. (#45)
Copy file name to clipboardExpand all lines: modules/kubernetes/ingress_nginx/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,11 @@ No requirements.
25
25
| chart\_version | The version of helm chart to use. |`string`|`"3.25.0"`| no |
26
26
| connection\_idle\_timeout | The amount of time the load balancer will keep an idle connection open for. The value of nginx upstream-keepalive-timeout will also be set to this value + 5. If it were shorter than the LB timeout it could cause intermittent 502s. |`number`|`55`| no |
27
27
| enable\_metrics | Enable prometheus metrics support, including adding a ServiceMonitor. |`bool`| n/a | yes |
28
+
| external\_traffic\_policy | The external traffic policy to apply to the ingress service. Cluster will open a valid NodePort on all nodes even if they aren't running an ingress pod and kubernetes will handle sending the traffic to the correct pod. Local will only have valid NodePorts on the nodes running ingress pods. |`string`|`"Cluster"`| no |
28
29
| namespace | Namespace to create the ingress in. |`string`|`"ingress-nginx"`| no |
29
30
| replica\_count | Number of replicas of the ingress controller to create. Should be 2 or more in production. |`number`|`2`| no |
30
-
| use\_network\_load\_balancer | Use an AWS NLB to load balance traffic to the cluster. Recommended. If false, will create a Classic Load Balancer. |`bool`|`true`| no |
31
+
| use\_network\_load\_balancer | Use an AWS NLB to load balance traffic to the cluster. If false, will create a Classic Load Balancer. NLB is not recommended at this time due to some connection issues. |`bool`|`false`| no |
32
+
| use\_proxy\_protocol | If true, will enable proxy protocol support between the Load Balancer and the nginx ingress controller. This allows nginx to know the IP of the client when using an ELB. |`bool`|`true`| no |
"service.beta.kubernetes.io/aws-load-balancer-proxy-protocol": var.use_proxy_protocol ?"*":"false"# "*" is the only value that enables proxy protocol on the LB
Copy file name to clipboardExpand all lines: modules/kubernetes/ingress_nginx/variables.tf
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,9 @@ variable "enable_metrics" {
28
28
}
29
29
30
30
variable"use_network_load_balancer" {
31
-
description="Use an AWS NLB to load balance traffic to the cluster. Recommended. If false, will create a Classic Load Balancer."
31
+
description="Use an AWS NLB to load balance traffic to the cluster. If false, will create a Classic Load Balancer. NLB is not recommended at this time due to some connection issues."
32
32
type=bool
33
-
default=true
33
+
default=false
34
34
}
35
35
variable"connection_idle_timeout" {
36
36
description="The amount of time the load balancer will keep an idle connection open for. The value of nginx upstream-keepalive-timeout will also be set to this value + 5. If it were shorter than the LB timeout it could cause intermittent 502s."
description="If true, will enable proxy protocol support between the Load Balancer and the nginx ingress controller. This allows nginx to know the IP of the client when using an ELB."
49
+
type=bool
50
+
default=true
51
+
}
52
+
53
+
variable"external_traffic_policy" {
54
+
description="The external traffic policy to apply to the ingress service. Cluster will open a valid NodePort on all nodes even if they aren't running an ingress pod and kubernetes will handle sending the traffic to the correct pod. Local will only have valid NodePorts on the nodes running ingress pods."
0 commit comments