cloudnativelabs / kube-router

Kube-router, a turnkey solution for Kubernetes networking.
https://kube-router.io
Apache License 2.0
2.33k stars 471 forks source link

Fully Support Upstream Service Traffic Policies #1597

Closed aauren closed 9 months ago

aauren commented 10 months ago

Is your feature request related to a problem? Please describe.

Upstream has defined a set of traffic policies that Kubernetes network providers should support.

kube-router currently supports spec.externalTrafficPolicy, but does not support spec.internalTrafficPolicy (which was introduced as stable in v1.26) at all.

Additionally, even when it applies spec.externalTrafficPolicy it does so by setting both Cluster IP and External IP to route locally or cluster, as opposed to only affecting the External traffic flows.

Describe the solution you'd like

As related to #1596 our goal is to make kube-router 100% conformant with upstream network implementation standards. To this end, kube-router should support spec.internalTrafficPolicy and fix it's implementation of spec.externalTrafficPolicy.

Describe alternatives you've considered

N/A