Skip to content

Commit

Permalink
Add example for NLB target-group-attributes to enable unhealthy targe…
Browse files Browse the repository at this point in the history
…t connection draining (#3577)

* Add example annotation for NLB unhealthy target connection draining

* Add emtpyline back in
  • Loading branch information
jukie authored Feb 27, 2024
1 parent 3ad2391 commit b63a294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guide/service/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ for proxy protocol v2 configuration.
```
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: preserve_client_ip.enabled=true
```
- disable immediate [connection termination for unhealthy targets](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health.html#unhealthy-target-connection-termination) and configure a 30s draining interval (available range is 0-360000 seconds)
```
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: target_health_state.unhealthy.connection_termination.enabled=false,target_health_state.unhealthy.draining_interval_seconds=30
```


- <a name="load-balancer-attributes">`service.beta.kubernetes.io/aws-load-balancer-attributes`</a> specifies [Load Balancer Attributes](http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_LoadBalancerAttribute.html) that should be applied to the NLB.
Expand Down

0 comments on commit b63a294

Please sign in to comment.