Traffic Splitting
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: split-95-5
spec:
hosts:
- service-B
http:
- route:
- destination:
host: service-B
subset: v1
weight: 95
- route:
- destination:
host: service-B
subset: v2
weight: 5
Traffic Steering
apiVersion: networking.istio.io/v1alpha3 kind: VirtualService
metadata:
name: route-rule-chrome-firefox
spec:
hosts:
- service-B
http:
- match:
- headers:
user-agent:
regex: “*.Chrome.*”
route:
- destination:
host: service-B
subset: v1
- match:
- headers:
user-agent:
regex: “*.Firefox.*”
route:
- destination:
host: service-B
subset: v2
Traffic Mirroring
apiVersion: networking.istio.io/v1alpha3 kind: VirtualService
metadata:
name: route-rule-mirror
spec:
hosts:
- service-B
http:
- route:
- destination:
host: service-B
subset: v1
mirror:
host: service-B
subset: v2
Http Timeout
Http Retry