Skip to content

Commit 585d68d

Browse files
authored
Add traffic distribution annotation (#3328)
* Add traffic distribution annotation Added in istio/istio#53435 * update docs
1 parent 1e82bd4 commit 585d68d

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

annotation/annotations.gen.go

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotation/annotations.pb.html

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotation/annotations.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,3 +550,23 @@ annotations:
550550
hidden: true
551551
resources:
552552
- Gateway
553+
554+
- name: networking.istio.io/traffic-distribution
555+
featureStatus: Alpha
556+
description: |
557+
Controls how traffic is distributed across the set of available endpoints.
558+
559+
At this time, this annotation only impacts routing done by Ztunnel.
560+
561+
Accepted values:
562+
* `PreferClose`: endpoints will be categorized by how "close" they are, consider network, region, zone, and subzone.
563+
Traffic will be prioritized to the closest healthy endpoints.
564+
For example, if I have a Service with `PreferClose` set, with endpoints in zones `us-west,us-west,us-east`. When
565+
sending traffic from a client in zone `us-west`, all traffic will go to the two `us-west` backends.
566+
If one those backends become unhealthy, all traffic will go to the remaining endpoint in `us-west`.
567+
If that backend becomes unhealthy, traffic will sent to `us-east`.
568+
deprecated: false
569+
hidden: false
570+
resources:
571+
- Service
572+
- ServiceEntry

0 commit comments

Comments
 (0)