Regex string not start with sub-string for Kubernetes Ingress
Just define both ingress objects - the one for the backend and the one for the frontend (you can even use prefix notation here). The path priority rules will order these entries accordingly.
Something like this should work:
apiVersion: networking.k8s.io/v1beta1kind: Ingressmetadata: name: test-ingress-1spec: rules: - host: test.com http: paths: - path: /app/api backend: serviceName: backend-service servicePort: 80 - path: /app backend: serviceName: frontend-service servicePort: 80