apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: portal-ingress
  namespace: portal
  annotations:
    kubernetes.io/ingress.class: nginx
    cert-manager.io/cluster-issuer: letsencrypt-staging
    nginx.ingress.kubernetes.io/rewrite-target: /$2
    nginx.ingress.kubernetes.io/use-regex: "true"
spec:
  tls:
  - hosts:
    - catenaxdevakssrv.germanywestcentral.cloudapp.azure.com
  rules:
  - host: catenaxdevakssrv.germanywestcentral.cloudapp.azure.com
    http:
      paths:
      - path: /portal(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: portal
            port:
              number: 80

