Skip to content

Commit

Permalink
Add traffic distribution annotation (#3328)
Browse files Browse the repository at this point in the history
* Add traffic distribution annotation

Added in istio/istio#53435

* update docs
  • Loading branch information
howardjohn authored Oct 18, 2024
1 parent 1e82bd4 commit 585d68d
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
28 changes: 28 additions & 0 deletions annotation/annotations.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions annotation/annotations.pb.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions annotation/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -550,3 +550,23 @@ annotations:
hidden: true
resources:
- Gateway

- name: networking.istio.io/traffic-distribution
featureStatus: Alpha
description: |
Controls how traffic is distributed across the set of available endpoints.
At this time, this annotation only impacts routing done by Ztunnel.
Accepted values:
* `PreferClose`: endpoints will be categorized by how "close" they are, consider network, region, zone, and subzone.
Traffic will be prioritized to the closest healthy endpoints.
For example, if I have a Service with `PreferClose` set, with endpoints in zones `us-west,us-west,us-east`. When
sending traffic from a client in zone `us-west`, all traffic will go to the two `us-west` backends.
If one those backends become unhealthy, all traffic will go to the remaining endpoint in `us-west`.
If that backend becomes unhealthy, traffic will sent to `us-east`.
deprecated: false
hidden: false
resources:
- Service
- ServiceEntry

0 comments on commit 585d68d

Please sign in to comment.