How rewrite target working under the hood? #3119
-
I was trying the rewrite target in k8s nginx apiVersion: networking.k8s.io/v1
the service is ExternalName with google.com apiVersion: v1 the rewrite target is working but checked in Wireshark, the traffic still remain /ggg/1/2/3 What to find out where is the magic trick that change to request to /1/2/3 but not /ggg/1/2/3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@BinaryWorld2099 Hello there.
That is for a different project.
Here is the link to our Ingress controller documentation and the annotations available. Let us know how it goes and if you have any other questions. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your time, I am testing in minikube, will try this annotation in future |
Beta Was this translation helpful? Give feedback.
@BinaryWorld2099 Hello there.
In looking at the information you have provided, it looks like you are using annotations for a different NGINX Ingress controller project.
This is the annotation you are using:
That is for a different project.
The annotation you will want to use for this project is:
Here is the link to our Ingress controller documentation and the annotations available.
https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/#request-uriheader-manipulation
Let us know how it goes and if you have any other questions.