Skip to content

Commit 562de83

Browse files
committed
Add regex example to advanced routing
1 parent de6c37e commit 562de83

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: HTTPRoute
3+
metadata:
4+
name: coffee-regex
5+
spec:
6+
parentRefs:
7+
- name: cafe
8+
hostnames:
9+
- cafe.example.com
10+
rules:
11+
- matches:
12+
- path:
13+
type: RegularExpression
14+
value: /coffee/[a-z]+
15+
backendRefs:
16+
- name: coffee-v1-svc
17+
port: 80

0 commit comments

Comments
 (0)