I want to implement the next rules. I have two services which are pointing to different pods. I have a path /rest-api and /rest-api/topology. I want to point one of them to a svc and another one to a different one.
Here is my attempt, but it seems something is wrong.
spec:
rules:
- http:
paths:
- backend:
service:
name: writer-svc
port:
number: 8443
path: /rest-api(/topology|$)(.*)
pathType: Prefix
- backend:
service:
name: normal-svc
port:
number: 8443
path: /rest-api(/|$)(?!topology|$)(.*)
pathType: Prefix