apiVersion : networking.k8s.io/v1
kind : Ingress
metadata : 
    name : ingress-srv
    annotations :
        kubernetes.io/ingress.class : nginx
        nginx.ingress.kubernetes.io/use-regex : 'true'
spec :
    rules :
        - host : ticketing.dev
          http :
            paths :
                - path : /api/payments/?(.*)
                  pathType: Prefix
                  backend :
                    service: 
                      name: payments-clusterip-service
                      port:
                        number: 3000
                - path : /api/users/?(.*)
                  pathType: Prefix
                  backend :
                    service:
                      name: auth-clusterip-service
                      port:
                        number: 3000
                - path : /api/tickets/?(.*)
                  pathType: Prefix
                  backend :
                    service:
                      name: tickets-clusterip-service
                      port:
                        number: 3000
                - path : /api/orders/?(.*)
                  pathType: Prefix
                  backend :
                    service:
                      name: orders-clusterip-service
                      port:
                        number: 3000
                - path : /?(.*)
                  pathType: Prefix
                  backend :
                    service:
                      name: client-clusterip-service
                      port:
                        number: 3000
                
              