Skip to content

Clarify documentation on ALB sticky session support #1614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/guide/ingress/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ Traffic Routing can be controlled with following annotations:

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

!!!note ""
`ip` mode is required for sticky sessions to work with Application Load Balancers.

!!!example
```
alb.ingress.kubernetes.io/target-type: instance
Expand Down Expand Up @@ -613,9 +616,10 @@ Custom attributes to LoadBalancers and TargetGroups can be controlled with follo
```
alb.ingress.kubernetes.io/target-group-attributes: deregistration_delay.timeout_seconds=30
```
- enable sticky sessions (Please remember to check the target group type to have the appropriate behavior).
- enable sticky sessions (requires `alb.ingress.kubernetes.io/target-type` be set to `ip`)
```
alb.ingress.kubernetes.io/target-group-attributes: stickiness.enabled=true,stickiness.lb_cookie.duration_seconds=60
alb.ingress.kubernetes.io/target-type: ip
```
- set load balancing algorithm to least outstanding requests
```
Expand Down