kubernetes-ingress
kubernetes-ingress copied to clipboard
enable TCPRoute to use HAProxy v2 protocol to communicate with the backend
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.