apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ip-mzisel-nl-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: rules: - http: paths: - path: /ip(/|$)(.*) pathType: Prefix backend: service: name: ip-mziesel-nl port: name: web