Quick question on traffic mirroring


#1

Can someone tell me what is wrong here to set up http mirroring? This isn’t working. It should (IIUC) that when I go to the productpage, I should ONLY ever see reviews coming from the v1 (which, in the bookinfo example, means you won’t see any stars in the reviews). But I should see “dark traffic” going to v2.

However, I see it as if its still a random round robin – going through v1, v2, v3.

Here’s the yaml I add after installing bookinfo. I’m trying this on istio 1.0.5 BTW.


apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews-mirroring-vs
namespace: bookinfo
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: reviews-mirroring-dr-v1
weight: 100
mirror:
host: reviews
subset: reviews-mirroring-dr-v2

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: reviews-mirroring-dr
namespace: bookinfo
spec:
host: reviews
subsets:
- name: reviews-mirroring-dr-v1
labels:
version: v1
- name: reviews-mirroring-dr-v2
labels:
version: v2