yelb-istio-config.yaml 1.05 KB
Newer Older
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
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: yelb-appserver-rule
spec:
  host: yelb-appserver
  subsets:
  - name: v1
    labels:
      version: v1
  - name: v2
    labels:
      version: v2
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: yelb-appserver-vsvc
spec:
  hosts:
  - yelb-appserver
  http:
  - route:
    - weight: 75
      destination:
        host: yelb-appserver
        subset: v1
  - route:
    - weight: 25
      destination:
        host: yelb-appserver
        subset: v2
33
34
---
apiVersion: networking.istio.io/v1alpha3
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
kind: Gateway
metadata:
  name: yelb-gwy
spec:
  selector:
    app: yelb-ui
  servers:
  - port:
      number: 443
      name: https
      protocol: HTTPS
    hosts:
    - {{ VHOST }}
    tls:
      mode: SIMPLE
      credentialName: yelb-ingress-cert
---
apiVersion: networking.istio.io/v1alpha3
53
54
55
56
57
58
kind: VirtualService
metadata:
  name: yelb-ui-vsvc
spec:
  hosts:
  - yelb-ui
59
60
  gateways:
  - yelb-gwy
61
62
63
64
  http:
  - route:
    - destination:
        host: yelb-ui        
65