Allow empty path with App-root annotation
This commit is contained in:
parent
bc6e9d5042
commit
f7c6c562a5
2 changed files with 25 additions and 1 deletions
|
@ -1308,6 +1308,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"),
|
||||
|
@ -1518,6 +1530,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)),
|
||||
|
@ -1684,6 +1701,13 @@ rateset:
|
|||
route("root", "Host:root"),
|
||||
),
|
||||
),
|
||||
frontend("root3",
|
||||
passHostHeader(),
|
||||
redirectRegex("root3$", "root3/root"),
|
||||
routes(
|
||||
route("root3", "Host:root3"),
|
||||
),
|
||||
),
|
||||
frontend("protocol/valid",
|
||||
passHostHeader(),
|
||||
routes(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue