apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: nuvla
  annotations:
    kubernetes.io/ingress.class: "traefik"
    traefik.ingress.kubernetes.io/router.entrypoints: http,https
    ingress.kubernetes.io/custom-request-headers: "nuvla-authn-info:"
spec:
  defaultBackend:
    service:
      name: ui
      port:
        number: 80
  rules:
    - http:
        paths:
          - path: /api
            pathType: ImplementationSpecific
            backend:
              service:
                name: api
                port:
                  number: 8200
          - path: /ui
            pathType: ImplementationSpecific
            backend:
              service:
                name: ui
                port:
                  number: 80
          - path: /
            pathType: ImplementationSpecific
            backend:
              service:
                name: ui
                port:
                  number: 80
