doc(ingress): add link to the rewrite-target doc
This commit is contained in:
parent
400f5c94ea
commit
8c6374bc5b
|
@ -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…
Reference in New Issue