Closed antoninbas closed 1 week ago
@hongliangl please take a look at this issue when you have some bandwidth. Thanks.
@hongliangl can we close this now?
We can close it right now because we have aligned with kube-proxy behavior. If anything is updated in K8s upstream about the feature, we can reopen it again in the future.
Traffic Distribution was introduced as an Alpha feature in K8s 1.30: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution (
ServiceTrafficDistribution
feature gate). It adds the.spec.trafficDistribution
field to Services. When the field is set toPreferClose
, the Service proxy will prioritize sending traffic to endpoints within the same zone as the client (e.g., for performance or cost reasons).See also https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-distribution for more details.
We should look into implementing support for this field in AntreaProxy.