From e74a20de244aacd5fbd80450c2b3fddd71c37ed0 Mon Sep 17 00:00:00 2001 From: Timo Reimann Date: Tue, 9 Jan 2018 11:56:02 +0100 Subject: [PATCH] Document rewrite-target annotation. --- docs/configuration/backends/kubernetes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/configuration/backends/kubernetes.md b/docs/configuration/backends/kubernetes.md index 02e0f4617..b2b5b94f4 100644 --- a/docs/configuration/backends/kubernetes.md +++ b/docs/configuration/backends/kubernetes.md @@ -112,6 +112,8 @@ Annotations can be used on containers to override default behaviour for the whol Override the default frontend endpoints. - `traefik.frontend.passTLSCert: true` Override the default frontend PassTLSCert value. Default: `false`. +- `ingress.kubernetes.io/rewrite-target: /users` + Replaces each matched Ingress path with the specified one, and adds the old path to the `X-Replaced-Path` header. !!! note Please note that `traefik.frontend.redirect.regex` and `traefik.frontend.redirect.replacement` do not have to be set if `traefik.frontend.redirect.entryPoint` is defined for the redirection (they will not be used in this case).