apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gateway-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  rules:
    - http:
        paths:
          - path: /employee(/.*)?
            pathType: Prefix
            backend:
              service:
                name: employee
                port:
                  number: 8080
          - path: /department(/.*)?
            pathType: Prefix
            backend:
              service:
                name: department
                port:
                  number: 8080
          - path: /organization(/.*)?
            pathType: Prefix
            backend:
              service:
                name: organization
                port:
                  number: 8080
          - path: /swagger-common(/.*)?
            pathType: Prefix
            backend:
              service:
                name: documentation
                port:
                  number: 8080
          - path: /zipkin-service(/.*)?
            pathType: Prefix
            backend:
              service:
                name: zipkin
                port:
                  number: 9411