Skip to content

Commit 8b9c298

Browse files
otterleyTimothy-Dougherty
authored andcommitted
Clarify documentation on ALB sticky session support (kubernetes-sigs#1614)
1 parent 75f8a94 commit 8b9c298

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/guide/ingress/annotations.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ Traffic Routing can be controlled with following annotations:
140140

141141
- [amazon-vpc-cni-k8s](https://github.com/aws/amazon-vpc-cni-k8s)
142142

143+
!!!note ""
144+
`ip` mode is required for sticky sessions to work with Application Load Balancers.
145+
143146
!!!example
144147
```
145148
alb.ingress.kubernetes.io/target-type: instance
@@ -613,9 +616,10 @@ Custom attributes to LoadBalancers and TargetGroups can be controlled with follo
613616
```
614617
alb.ingress.kubernetes.io/target-group-attributes: deregistration_delay.timeout_seconds=30
615618
```
616-
- enable sticky sessions (Please remember to check the target group type to have the appropriate behavior).
619+
- enable sticky sessions (requires `alb.ingress.kubernetes.io/target-type` be set to `ip`)
617620
```
618621
alb.ingress.kubernetes.io/target-group-attributes: stickiness.enabled=true,stickiness.lb_cookie.duration_seconds=60
622+
alb.ingress.kubernetes.io/target-type: ip
619623
```
620624
- set load balancing algorithm to least outstanding requests
621625
```

0 commit comments

Comments
 (0)