Enable Istio on IEC type2
[iec.git] / src / use_cases / service_mesh / bookinfo / config / bookinfo-gateway.yaml
1 # yamllint disable rule:hyphens rule:commas rule:indentation rule:line-length rule:comments
2 apiVersion: networking.istio.io/v1alpha3
3 kind: Gateway
4 metadata:
5   name: bookinfo-gateway
6 spec:
7   selector:
8     istio: ingressgateway # use istio default controller
9   servers:
10   - port:
11       number: 80
12       name: http
13       protocol: HTTP
14     hosts:
15     - "*"
16 ---
17 apiVersion: networking.istio.io/v1alpha3
18 kind: VirtualService
19 metadata:
20   name: bookinfo
21 spec:
22   hosts:
23   - "*"
24   gateways:
25   - bookinfo-gateway
26   http:
27   - match:
28     - uri:
29         exact: /productpage
30     - uri:
31         prefix: /static
32     - uri:
33         exact: /login
34     - uri:
35         exact: /logout
36     - uri:
37         prefix: /api/v1/products
38     route:
39     - destination:
40         host: productpage
41         port:
42           number: 9080