I am trying to setup multicluster via following this instructions:
The VirtualService below shows that when a user ‘jason’ is logged in, 50% of traffic should go to v2 and other 50% v3. However, when I log in as user ‘jason’ i see:
Error fetching product reviews!
kubectl apply --context=$CTX_CLUSTER1 -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews
spec:
hosts:
- reviews.default.svc.cluster.local
http:
- match:
- headers:
end-user:
exact: jason
route: - destination:
host: reviews.default.global
subset: v2
weight: 50 - destination:
host: reviews.default.global
subset: v3
weight: 50
- headers:
- route:
- destination:
host: reviews.default.svc.cluster.local
subset: v1
EOF
- destination:
Istio version: 1.5.6
Kubernetes Version: 1.16.13