- 描述
- LoadBalancer is the Schema for the loadbalancers API
- 类型
object
规格
.spec
- 描述
- LoadBalancerSpec defines the desired state of LoadBalancer
- 类型
object
.spec.consistentHash
- 描述
- Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.
- 类型
object
.spec.consistentHash.httpCookie
- 描述
- Hash based on HTTP cookie.
- 类型
object
.spec.localityLbSetting
- 描述
- Optional: only one of distribute or failover can be set. Explicitly specify loadbalancing weight across different zones and geographical locations. Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) If empty, the locality weight is set according to the endpoints number within it.
- 类型
object- 必填
enabled
.spec.localityLbSetting.distribute
- 类型
array
.spec.localityLbSetting.distribute[]
- 类型
object
.spec.localityLbSetting.distribute[].to
- 描述
- Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
- 类型
object
.spec.localityLbSetting.failover
- 类型
array
.spec.localityLbSetting.failover[]
- 类型
object
.status
- 描述
- LoadBalancerStatus defines the observed state of LoadBalancer
- 类型
object
API 端点
可用的 API 端点如下:
/apis/asm.alauda.io/v1beta2/namespaces/{namespace}/loadbalancersDELETE: delete collection of LoadBalancerGET: list objects of kind LoadBalancerPOST: create a new LoadBalancer
/apis/asm.alauda.io/v1beta2/namespaces/{namespace}/loadbalancers/{name}DELETE: delete the specified LoadBalancerGET: read the specified LoadBalancerPATCH: partially update the specified LoadBalancerPUT: replace the specified LoadBalancer
/apis/asm.alauda.io/v1beta2/namespaces/{namespace}/loadbalancers
- HTTP 方法
DELETE- 描述
- delete collection of LoadBalancer
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind LoadBalancer
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new LoadBalancer
- 查询参数
- 请求体参数
- HTTP 响应
/apis/asm.alauda.io/v1beta2/namespaces/{namespace}/loadbalancers/{name}
- HTTP 方法
DELETE- 描述
- delete the specified LoadBalancer
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified LoadBalancer
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified LoadBalancer
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified LoadBalancer
- 查询参数
- 请求体参数
- HTTP 响应