envoyproxy / envoyproxy/gateway

support endpoint picker based on original dst cluster

Open
#6,457 8 comments 0 reactions 1 assignee Claimed by @Xunzhuo View on GitHub
kind/feature stale
Dominant language
Go
Stars
3k
Forks
864
Avg merge
2d 2h
Merged PRs (30d)
140

Description

*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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.