1
0
mirror of https://github.com/containous/traefik.git synced 2025-10-19 07:33:17 +03:00

Allow empty path with App-root annotation

This commit is contained in:
Daniel Tomcej
2018-12-26 04:52:03 -06:00
committed by Traefiker Bot
parent ee19e66aba
commit 4db0dd9a7f
2 changed files with 25 additions and 1 deletions

View File

@@ -1299,6 +1299,18 @@ rateset:
),
),
),
buildIngress(
iNamespace("testing"),
iAnnotation(annotationKubernetesAppRoot, "/root"),
iRules(
iRule(
iHost("root3"),
iPaths(
onePath(iBackend("service1", intstr.FromInt(80))),
),
),
),
),
buildIngress(
iNamespace("testing"),
iAnnotation(annotationKubernetesIngressClass, "traefik"),
@@ -1503,6 +1515,11 @@ rateset:
servers(),
lbMethod("wrr"),
),
backend("root3",
servers(
server("http://example.com", weight(1))),
lbMethod("wrr"),
),
backend("protocol/valid",
servers(
server("h2c://example.com", weight(1)),
@@ -1658,6 +1675,13 @@ rateset:
route("root", "Host:root"),
),
),
frontend("root3",
passHostHeader(),
redirectRegex("root3$", "root3/root"),
routes(
route("root3", "Host:root3"),
),
),
frontend("protocol/valid",
passHostHeader(),
routes(