@@ -5344,13 +5344,11 @@ const (
5344
5344
5345
5345
// These are valid values for the TrafficDistribution field of a Service.
5346
5346
const (
5347
- // Indicates a preference for routing traffic to endpoints that are
5348
- // topologically proximate to the client. The interpretation of "topologically
5349
- // proximate" may vary across implementations and could encompass endpoints
5350
- // within the same node, rack, zone, or even region. Setting this value gives
5351
- // implementations permission to make different tradeoffs, e.g. optimizing for
5352
- // proximity rather than equal distribution of load. Users should not set this
5353
- // value if such tradeoffs are not acceptable.
5347
+ // Indicates a preference for routing traffic to endpoints that are in the
5348
+ // same zone as the client. Setting this value gives implementations
5349
+ // permission to make different tradeoffs, e.g. optimizing for proximity
5350
+ // rather than equal distribution of load. Users should not set this value
5351
+ // if such tradeoffs are not acceptable.
5354
5352
ServiceTrafficDistributionPreferClose = "PreferClose"
5355
5353
)
5356
5354
@@ -5699,13 +5697,12 @@ type ServiceSpec struct {
5699
5697
// +optional
5700
5698
InternalTrafficPolicy * ServiceInternalTrafficPolicy `json:"internalTrafficPolicy,omitempty" protobuf:"bytes,22,opt,name=internalTrafficPolicy"`
5701
5699
5702
- // TrafficDistribution offers a way to express preferences for how traffic is
5703
- // distributed to Service endpoints. Implementations can use this field as a
5704
- // hint, but are not required to guarantee strict adherence. If the field is
5705
- // not set, the implementation will apply its default routing strategy. If set
5706
- // to "PreferClose", implementations should prioritize endpoints that are
5707
- // topologically close (e.g., same zone).
5708
- // This is a beta field and requires enabling ServiceTrafficDistribution feature.
5700
+ // TrafficDistribution offers a way to express preferences for how traffic
5701
+ // is distributed to Service endpoints. Implementations can use this field
5702
+ // as a hint, but are not required to guarantee strict adherence. If the
5703
+ // field is not set, the implementation will apply its default routing
5704
+ // strategy. If set to "PreferClose", implementations should prioritize
5705
+ // endpoints that are in the same zone.
5709
5706
// +featureGate=ServiceTrafficDistribution
5710
5707
// +optional
5711
5708
TrafficDistribution * string `json:"trafficDistribution,omitempty" protobuf:"bytes,23,opt,name=trafficDistribution"`
0 commit comments