The "nginx.ingress.kubernetes.io/rewrite-target" annotation on my ingress resource does not seem to be doing anything. Everything works just fine when I change path: /helloworld
to path: /
. I have tried putting the annotation's value in double quotes and changing the order of annotations to no effect. What am I missing? It seems like this should be fairly straightforward.
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: helloworld-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: <NGINX_CONTROLLER_EXTERNAL_IP>.xip.io
http:
paths:
- backend:
serviceName: helloworld-svc
servicePort: 80
path: /helloworld