apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
Feature: Path test
An Ingress may define routing rules based on the request path. If the HTTP request path matches one of the paths in the Ingress objects, the traffic is routed to its backend service.
Scenarios
| Status | Progress |
|---|---|
|
Passed |
100.00% |
|
Failed |
0.00% |
(prefix / and /aaa matches request / and route to single-slash-type-prefix)
(prefix / and /aaa matches request /a and route to single-slash-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa and route to single-slash-aaa-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa/ and route to single-slash-aaa-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa/ and route to single-slash-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa/ccc and route to single-slash-aaa-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa/ccc/a/b/c/d/e/f/g and route to single-slash-aaa-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request / and route to single-slash-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /a and route to single-slash-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa and route to single-slash-type-prefix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa and route to single-slash-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaaxyz and route to single-slash-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa/ccc and route to single-slash-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix / and /aaa matches request /aaa/ccc/a/b/c/d/e/f/g and route to single-slash-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request / and route to single-slash-type-exact-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request /a and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request /aaa and route to single-slash-aaa-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request /aaa and route to single-slash-aaa-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request /aaaxyz and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request /aaa/ccc and route to single-slash-aaa-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and prefix /aaa matches request /aaa/ccc/a/b/c/d/e/f/g and route to single-slash-aaa-type-prefix-mix)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request / and route to single-slash-type-exact)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request /a and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request /aaa and route to single-slash-aaa-type-exact)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request /aaa/ and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request /aaaxyz and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request /aaa/ccc and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(exact / and exact /aaa matches request /aaa/ccc/a/b/c/d/e/f/g and not route to backend)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request / and route to single-slash)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /a and route to single-slash)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa and route to single-slash-aaa)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa/ and route to single-slash-aaa)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa/bb and route to single-slash-aaa)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa/bbb and route to single-slash-aaa-bbb)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa/bbb/ and route to single-slash-aaa-bbb)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa/bbb/ccc and route to single-slash-aaa-bbb)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /ccc and route to single-slash)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000
(prefix /, /aaa, /aaa/bbb matches request /aaa/ccc and route to single-slash-aaa)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: multi-path
spec:
rules:
- host: "all-prefix"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix
port:
number: 3000
- host: "prefix-exact"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash-type-prefix-mix
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact-mix
port:
number: 3000
- host: "exact-prefix"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact-mix
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa-type-prefix-mix
port:
number: 3000
- host: "all-exact"
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: single-slash-type-exact
port:
number: 3000
- path: /aaa
pathType: Exact
backend:
service:
name: single-slash-aaa-type-exact
port:
number: 3000
- host: "multi-path-route"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: single-slash
port:
number: 3000
- path: /aaa
pathType: Prefix
backend:
service:
name: single-slash-aaa
port:
number: 3000
- path: /aaa/bbb
pathType: Prefix
backend:
service:
name: single-slash-aaa-bbb
port:
number: 3000