From b63a2940832edba4993a893bbc97c83369e9714b Mon Sep 17 00:00:00 2001 From: Isaac Wilson <10012479+jukie@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:27:26 -0700 Subject: [PATCH] Add example for NLB target-group-attributes to enable unhealthy target connection draining (#3577) * Add example annotation for NLB unhealthy target connection draining * Add emtpyline back in --- docs/guide/service/annotations.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/service/annotations.md b/docs/guide/service/annotations.md index e3a9bfe76..cdab12199 100644 --- a/docs/guide/service/annotations.md +++ b/docs/guide/service/annotations.md @@ -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 + ``` - `service.beta.kubernetes.io/aws-load-balancer-attributes` specifies [Load Balancer Attributes](http://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_LoadBalancerAttribute.html) that should be applied to the NLB.