kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

enable TCPRoute to use HAProxy v2 protocol to communicate with the backend

Open eltorio opened this issue 1 year ago • 0 comments

For gateway API (≥ v0.5.1)

New annotation in TCPRoute

apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
  annotations:
    haproxy.org/send-proxy-v2: 'true'

this will enable to use HAProxy v2 protocol to communicate with the backend this is useful for transmitting the original IP of the remote client.

eltorio avatar Jan 31 '24 10:01 eltorio