I'm trying to filter out all paths that begin with /something
. While the regex seems PCRE valid by online testers, the result is 404
for all paths:
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: myhost.com
http:
paths:
- backend:
serviceName: myservice
servicePort: 80
path: /^([^something].*)
Tried to play with the regex (e.g, path: /(^[^something])(.*)
), but still get 404
for all.
What am I missing?
Using v1.12.2
client with v1.14.1
server.