mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Update trafficDistribution API spec docs for GA graduation
This commit is contained in:
parent
0f2bde7745
commit
0d0b81b937
@ -4550,13 +4550,11 @@ const (
|
||||
|
||||
// These are valid values for the TrafficDistribution field of a Service.
|
||||
const (
|
||||
// Indicates a preference for routing traffic to endpoints that are
|
||||
// topologically proximate to the client. The interpretation of "topologically
|
||||
// proximate" may vary across implementations and could encompass endpoints
|
||||
// within the same node, rack, zone, or even region. Setting this value gives
|
||||
// implementations permission to make different tradeoffs, e.g. optimizing for
|
||||
// proximity rather than equal distribution of load. Users should not set this
|
||||
// value if such tradeoffs are not acceptable.
|
||||
// Indicates a preference for routing traffic to endpoints that are in the
|
||||
// same zone as the client. Setting this value gives implementations
|
||||
// permission to make different tradeoffs, e.g. optimizing for proximity
|
||||
// rather than equal distribution of load. Users should not set this value
|
||||
// if such tradeoffs are not acceptable.
|
||||
ServiceTrafficDistributionPreferClose = "PreferClose"
|
||||
)
|
||||
|
||||
@ -4824,12 +4822,12 @@ type ServiceSpec struct {
|
||||
// +optional
|
||||
InternalTrafficPolicy *ServiceInternalTrafficPolicy
|
||||
|
||||
// TrafficDistribution offers a way to express preferences for how traffic is
|
||||
// distributed to Service endpoints. Implementations can use this field as a
|
||||
// hint, but are not required to guarantee strict adherence. If the field is
|
||||
// not set, the implementation will apply its default routing strategy. If set
|
||||
// to "PreferClose", implementations should prioritize endpoints that are
|
||||
// topologically close (e.g., same zone).
|
||||
// TrafficDistribution offers a way to express preferences for how traffic
|
||||
// is distributed to Service endpoints. Implementations can use this field
|
||||
// as a hint, but are not required to guarantee strict adherence. If the
|
||||
// field is not set, the implementation will apply its default routing
|
||||
// strategy. If set to "PreferClose", implementations should prioritize
|
||||
// endpoints that are in the same zone.
|
||||
// +optional
|
||||
TrafficDistribution *string
|
||||
}
|
||||
|
@ -5344,13 +5344,11 @@ const (
|
||||
|
||||
// These are valid values for the TrafficDistribution field of a Service.
|
||||
const (
|
||||
// Indicates a preference for routing traffic to endpoints that are
|
||||
// topologically proximate to the client. The interpretation of "topologically
|
||||
// proximate" may vary across implementations and could encompass endpoints
|
||||
// within the same node, rack, zone, or even region. Setting this value gives
|
||||
// implementations permission to make different tradeoffs, e.g. optimizing for
|
||||
// proximity rather than equal distribution of load. Users should not set this
|
||||
// value if such tradeoffs are not acceptable.
|
||||
// Indicates a preference for routing traffic to endpoints that are in the
|
||||
// same zone as the client. Setting this value gives implementations
|
||||
// permission to make different tradeoffs, e.g. optimizing for proximity
|
||||
// rather than equal distribution of load. Users should not set this value
|
||||
// if such tradeoffs are not acceptable.
|
||||
ServiceTrafficDistributionPreferClose = "PreferClose"
|
||||
)
|
||||
|
||||
@ -5699,13 +5697,12 @@ type ServiceSpec struct {
|
||||
// +optional
|
||||
InternalTrafficPolicy *ServiceInternalTrafficPolicy `json:"internalTrafficPolicy,omitempty" protobuf:"bytes,22,opt,name=internalTrafficPolicy"`
|
||||
|
||||
// TrafficDistribution offers a way to express preferences for how traffic is
|
||||
// distributed to Service endpoints. Implementations can use this field as a
|
||||
// hint, but are not required to guarantee strict adherence. If the field is
|
||||
// not set, the implementation will apply its default routing strategy. If set
|
||||
// to "PreferClose", implementations should prioritize endpoints that are
|
||||
// topologically close (e.g., same zone).
|
||||
// This is a beta field and requires enabling ServiceTrafficDistribution feature.
|
||||
// TrafficDistribution offers a way to express preferences for how traffic
|
||||
// is distributed to Service endpoints. Implementations can use this field
|
||||
// as a hint, but are not required to guarantee strict adherence. If the
|
||||
// field is not set, the implementation will apply its default routing
|
||||
// strategy. If set to "PreferClose", implementations should prioritize
|
||||
// endpoints that are in the same zone.
|
||||
// +featureGate=ServiceTrafficDistribution
|
||||
// +optional
|
||||
TrafficDistribution *string `json:"trafficDistribution,omitempty" protobuf:"bytes,23,opt,name=trafficDistribution"`
|
||||
|
Loading…
Reference in New Issue
Block a user