Skip to content

support endpoint picker based on original dst cluster #6457

@Xunzhuo

Description

@Xunzhuo

Description:

Support Endpoint Picker Based on the Original Dst Cluster: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/original_dst#arch-overview-load-balancing-types-original-destination

Original Dst Cluster selects the endpoint from the header or metadata, and directly foward it to the Endpoint.

Introducing a new backend type OriginalDestination in Backend to make this happen.

header:

 apiVersion: gateway.envoyproxy.io/v1alpha1
  kind: Backend
  metadata:
    name: backend-routing-based-on-header
    namespace: default
  spec:
    type: OriginalDestination
      originalDestinationSetting:
        metadata:
          key: "envoy.lb"
          path:
          - key: "override-host"

metadata:

 apiVersion: gateway.envoyproxy.io/v1alpha1
  kind: Backend
  metadata:
    name: backend-routing-based-on-header
    namespace: default
  spec:
    type: OriginalDestination
      originalDestinationSetting:
         header: target-pod

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions