From 10b545a97ddffd3a8bdac0864e1e47860e4631d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9-Paul=20D?= <44802527+godelized@users.noreply.github.com> Date: Thu, 12 Nov 2020 15:52:27 +0100 Subject: [PATCH] doc(ingress): add link to the rewrite-target doc (#63) --- 08-service/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/08-service/README.md b/08-service/README.md index 9a89b11..6599b80 100644 --- a/08-service/README.md +++ b/08-service/README.md @@ -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"`