yelb-istio-config.yaml 578 Bytes
Newer Older
1
apiVersion: networking.istio.io/v1beta1
2
3
4
5
6
7
8
9
10
11
12
13
14
kind: DestinationRule
metadata:
  name: yelb-appserver-rule
spec:
  host: yelb-appserver
  subsets:
  - name: v1
    labels:
      version: v1
  - name: v2
    labels:
      version: v2
---
15
16
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
17
18
19
20
21
22
metadata:
  name: yelb-appserver-vsvc
spec:
  hosts:
  - yelb-appserver
  http:
23
24
25
26
27
28
29
30
31
32
  - name: "default"
    route:
    - weight: 75
      destination:
        host: yelb-appserver
        subset: v1
    - weight: 25
      destination:
        host: yelb-appserver
        subset: v2       
33