yelb-istio-config.yaml 738 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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:
23
  - match:
24
    - headers:
25
        baggage-user-agent:
26
          regex: .*Firefox.*
27
28
29
30
      route:
      - destination:
          host: yelb-appserver
          subset: v2
31
32
33
34
35
36
37
38
39
#  - route:
#    - weight: 75
#      destination:
#        host: yelb-appserver
#        subset: v1
#    - weight: 25
#      destination:
#        host: yelb-appserver
#        subset: v2       
40