Haproxy with ingress

Hi Team,

I have a confusion/issue with haproxy.
I am implementing haproxy on AKS… I have haproxy deployment, service and configmap files… In configmap I am adding frontend and backend details… now I can access application when I expose my haproxy service as loadbalancer… but I want to use ingress yaml file without installing nginx ingress controller and route the traffic between 2 services in the same namespace… how do I do that?

I have defined a path based routing in my ingress file which is not working currently…

could you please suggest me here

this is my ingress file

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: haproxy
name: hello-world-ingress
annotations:
haproxy.org/ssl-redirect: “false”
haproxy.org/path-regex: “true”
haproxy.org/rewrite-target: /$2
spec:
ingressClassName: haproxy
rules:

  • host: raksha.cloud
    http:
    paths:
    • path: /(.*)
      pathType: Prefix
      backend:
      service:
      name: aks-helloworld-one
      port:
      number: 80
    • path: /hello-world-two(/|$)(.*)
      pathType: Prefix
      backend:
      service:
      name: aks-helloworld-two
      port:
      number: 80
    • path: /(.*)
      pathType: Prefix
      backend:
      service:
      name: aks-helloworld-one
      port:
      number: 80

If I define path based routing in my haproxy config it works fine… then in that case what is the use of using ingress yaml file?

I have the same problem. Have you found a solution?