forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperf_istio_rules.yaml
45 lines (45 loc) · 959 Bytes
/
perf_istio_rules.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
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: fortio-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: fortio
spec:
hosts:
- "*"
gateways:
- fortio-gateway
http:
- match:
- uri:
prefix: /fortio1/
route:
- destination:
host: echosrv1.istio.svc.cluster.local
port:
number: 8080
rewrite:
uri: / # drop the /fortio1 prefix when talking to fortio such as /fortio1/fortio -> /fortio
- match:
- uri:
prefix: /fortio2/
route:
- destination:
host: echosrv2.istio.svc.cluster.local
port:
number: 8080
rewrite:
uri: / # drop the /fortio2 prefix when talking to fortio such as /fortio2/fortio -> /fortio