doc(ingress): add link to the rewrite-target doc (#63)

pull/67/head
José-Paul D 3 years ago committed by GitHub
parent 400f5c94ea
commit 10b545a97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -212,6 +212,7 @@ kubectl delete ingress,service,deployment,rs,pod --all
For 2), you need to add the metadata `nginx.ingress.kubernetes.io/rewrite-target: /` to the ingress:
* It is possible to capture groups from paths into numbered placeholders and pass them to the rewrite target: https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/rewrite/README.md#rewrite-target
* Don't forget to create 2 deployments and 2 services.
* You can either change your `/etc/hosts` to add the name resolution for `foo.bar.com`, or use `curl http://YOUR-IP -H "Host: foo.bar.com"`

Loading…
Cancel
Save