I have the PROXY Protocol working fine to a backend HTTP server:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-static
annotations:
haproxy.org/send-proxy-protocol: proxy
I also have several TCP services configured in the TCP ConfigMap:
data:
5349: "hcce/coturn:5349"
12525: "mail/docker-mailserver:12525"
10465: "mail/docker-mailserver:10465"
10587: "mail/docker-mailserver:10587"
10993: "mail/docker-mailserver:10993"
and in the HAProxy LoadBalancer Service:
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- name: coturn
port: 5349
protocol: TCP
targetPort: 5349
- name: smtp-25
port: 25
protocol: TCP
targetPort: 12525
- name: smtp-465
port: 465
protocol: TCP
targetPort: 10465
- name: smtp-587
port: 587
protocol: TCP
targetPort: 10587
- name: imaps
port: 993
protocol: TCP
targetPort: 10993
How do I set the HAProxy ingress controller to use the PROXY Protocol with these TCP services? I don’t see anything you can set in the ConfigMap or LoadBalancer ports. Is there a way to set a backend snippet for a TCP service?