apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/use-regex: "true"
  name: tripviewer-ingress
  namespace: api
spec:
  rules:
    - http:
        paths:
        - path: /api/poi(/|$)(.*)
          pathType: Prefix
          backend:
            service:
              name: poi-svc
              port:
                number: 80
        - path: /api/trips(/|$)(.*)
          pathType: Prefix
          backend:
            service:
              name: trips-svc
              port:
                number: 80
        - path: /api/user(/|$)(.*)
          pathType: Prefix
          backend:
            service:
              name: userprofile-svc
              port:
                number: 80
        - path: /api/user-java(/|$)(.*)
          pathType: Prefix
          backend:
            service:
              name: user-java-svc
              port:
                number: 80
