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
Copy file name to clipboardExpand all lines: docs/service_controller.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,3 +33,56 @@ The service controller is responsible for watch for service and node object chan
33
33
| service.beta.kubernetes.io/aws-load-balancer-healthcheck-protocol |[tcp\|http\|https]| tcp | NLB | Specifies the protocol to use for the target group health check. |
34
34
| service.beta.kubernetes.io/aws-load-balancer-subnets | Comma-separated list | - | ELB,NLB | Specifies the Availability Zone configuration for the load balancer. The values are comma separated list of subnetID or subnetName from different AZs. |
35
35
| service.beta.kubernetes.io/aws-load-balancer-target-node-labels | Comma-separated list of key=value | - | ELB,NLB | Specifies a comma-separated list of key-value pairs which will be used to select the target nodes for the load balancer. |
36
+
| service.beta.kubernetes.io/aws-load-balancer-target-group-attributes | Comma-separated list of key=value | - | NLB | Specifies a comma-separated list of key-value pairs which will be applied as target group attributes. For example: "preserve_client_ip.enabled=false". The list of supported values is available [here](#tg-supported-attributes). |
37
+
38
+
39
+
## Target group attributes for Service type-loadBalancer NLB <aname="tg-supported-attributes"></a>
40
+
41
+
The following target group attributes are supported by the controller using the annotation `service.beta.kubernetes.io/aws-load-balancer-target-group-attributes`:
42
+
43
+
| Attribute | Values | Description |
44
+
| -- | -- | -- |
45
+
| preserve_client_ip.enabled |[true\|false]| Whether to preserve client IP addresses when terminating connections at the target group level |
46
+
| proxy_protocol_v2.enabled |[true\|false]| Whether to enable proxy protocol v2 on the target group |
47
+
48
+
**Format:** Attributes are specified as `key=value` pairs, separated by commas.
### Usage Example 1 - working with hairpin connection on internal NLB
56
+
57
+
The following Service example changes the Target Group Traffic Control attribute "Preserve client IP addresses" from the default (`true`, when target type is instance) to `false`:
### Usage Example 2 - working with hairpin connection on internal NLB tracking source IP address
73
+
74
+
The following example allow users to fine tune the Services for a backend which requires tracking the original source IP address of internal Load Balancers NLB with support of hairpin connections:
0 commit comments