commit | author | age
|
1e067d
|
1 |
apiVersion: networking.istio.io/v1alpha3 |
MC |
2 |
kind: Gateway |
|
3 |
metadata: |
|
4 |
name: frontend-gw |
|
5 |
spec: |
|
6 |
selector: |
|
7 |
istio: ingressgateway # use istio default controller |
|
8 |
servers: |
|
9 |
- port: |
|
10 |
number: 80 |
|
11 |
name: http |
|
12 |
protocol: HTTP |
|
13 |
hosts: |
|
14 |
- "*" |
|
15 |
--- |
|
16 |
apiVersion: networking.istio.io/v1alpha3 |
|
17 |
kind: VirtualService |
|
18 |
metadata: |
|
19 |
name: frontend-vservice |
|
20 |
spec: |
|
21 |
hosts: |
|
22 |
- "*" |
|
23 |
gateways: |
|
24 |
- frontend-gw |
|
25 |
http: |
|
26 |
- match: |
|
27 |
- uri: |
|
28 |
prefix: /frontend |
|
29 |
rewrite: |
|
30 |
uri: /frontend |
|
31 |
route: |
|
32 |
- destination: |
|
33 |
host: frontend |
|
34 |
port: |
|
35 |
number: 3000 |