Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions api/v1alpha1/loadbalancer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ type LoadBalancer struct {
// ZoneAware defines the configuration related to the distribution of requests between locality zones.
//
// +optional
// +notImplementedHide
ZoneAware *ZoneAware `json:"zoneAware,omitempty"`
}

Expand Down Expand Up @@ -156,7 +155,6 @@ type ZoneAware struct {
// PreferLocalZone configures zone-aware routing to prefer sending traffic to the local locality zone.
//
// +optional
// +notImplementedHide
PreferLocal *PreferLocalZone `json:"preferLocal,omitempty"`
}

Expand All @@ -166,13 +164,11 @@ type PreferLocalZone struct {
// which maintains equal distribution among upstream endpoints while sending as much traffic as possible locally.
//
// +optional
// +notImplementedHide
Force *ForceLocalZone `json:"force,omitempty"`

// MinEndpointsThreshold is the minimum number of total upstream endpoints across all zones required to enable zone-aware routing.
//
// +optional
// +notImplementedHide
MinEndpointsThreshold *uint64 `json:"minEndpointsThreshold,omitempty"`
}

Expand Down
4 changes: 4 additions & 0 deletions site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3146,6 +3146,7 @@ _Appears in:_
| `consistentHash` | _[ConsistentHash](#consistenthash)_ | false | | ConsistentHash defines the configuration when the load balancer type is<br />set to ConsistentHash |
| `endpointOverride` | _[EndpointOverride](#endpointoverride)_ | false | | EndpointOverride defines the configuration for endpoint override.<br />When specified, the load balancer will attempt to route requests to endpoints<br />based on the override information extracted from request headers or metadata.<br /> If the override endpoints are not available, the configured load balancer policy will be used as fallback. |
| `slowStart` | _[SlowStart](#slowstart)_ | false | | SlowStart defines the configuration related to the slow start load balancer policy.<br />If set, during slow start window, traffic sent to the newly added hosts will gradually increase.<br />Currently this is only supported for RoundRobin and LeastRequest load balancers |
| `zoneAware` | _[ZoneAware](#zoneaware)_ | false | | ZoneAware defines the configuration related to the distribution of requests between locality zones. |


#### LoadBalancerType
Expand Down Expand Up @@ -3602,6 +3603,8 @@ _Appears in:_

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `force` | _[ForceLocalZone](#forcelocalzone)_ | false | | ForceLocalZone defines override configuration for forcing all traffic to stay within the local zone instead of the default behavior<br />which maintains equal distribution among upstream endpoints while sending as much traffic as possible locally. |
| `minEndpointsThreshold` | _integer_ | false | | MinEndpointsThreshold is the minimum number of total upstream endpoints across all zones required to enable zone-aware routing. |


#### Principal
Expand Down Expand Up @@ -5345,5 +5348,6 @@ _Appears in:_

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `preferLocal` | _[PreferLocalZone](#preferlocalzone)_ | false | | PreferLocalZone configures zone-aware routing to prefer sending traffic to the local locality zone. |