Traffic routing — VirtualService istio

Route 80% traffic to v1, 20% to v2 (canary split)

kubectl apply -f - <<EOF apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: myapp spec: hosts: - myapp http: - route: - destination: host: myapp subset: v1 weight: 80 - destination: host: myapp subset: v2 weight: 20 EOF
more istio all 19 commands →