-
Notifications
You must be signed in to change notification settings - Fork 5
/
api-example-com-rt.yaml
72 lines (72 loc) · 1.6 KB
/
api-example-com-rt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: networking.gloo.solo.io/v2
kind: RouteTable
metadata:
name: api-example-com-rt
namespace: gloo-mesh-gateways
spec:
hosts:
- api.example.com
virtualGateways:
- name: istio-ingressgateway
namespace: gloo-mesh-gateways
http:
- name: tracks-1.0
labels:
usagePlans: dev-portal
matchers:
- uri:
prefix: /trackapi/v1.0
delegate:
routeTables:
- labels:
api: tracks-1.0
# - name: tracks-1.1
# matchers:
# - uri:
# prefix: /trackapi/v1.1
# delegate:
# routeTables:
# - labels:
# api: tracks-1.1
# - name: petstore
# matchers:
# - uri:
# prefix: /petstore
# delegate:
# routeTables:
# - labels:
# api: petstore
# - name: httpbin
# labels:
# usagePlans: dev-portal
# route: httpbin
# matchers:
# - uri:
# prefix: /httpbin/
# forwardTo:
# pathRewrite: /
# destinations:
# - ref:
# name: httpbin
# namespace: httpbin
# cluster: gg-demo-single
# port:
# number: 8000
# - name: mock-api
# labels:
# cors-policy: api
# metadata: headers
# route: mock
# usagePlans: dev-portal
# matchers:
# - uri:
# prefix: /mock/
# # Figure out if we can have a direct response here, when we also specify a forwardTo (cause we need the stitched doc).
# forwardTo:
# pathRewrite: /
# destinations:
# - ref:
# name: mock-api-service
# namespace: mocks
# port:
# number: 8080