Mirror traffic

Copy 100% of traffic to the v2 shadow service while users still get v1

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: 100 mirror: host: myapp subset: v2 mirrorPercentage: value: 100 EOF

tool
istio19 commands
tags
istioservice-meshmirroringcanary

More istio commands

  • istioctl install --set profile=demo -y

    Install Istio with the demo configuration profile

  • kubectl label namespace default istio-injection=enabled

    Add the Envoy sidecar to every new pod in the namespace automatically

  • istioctl proxy-status

    Show the sync status of all Envoy proxies in the mesh

  • istioctl analyze

    Check the Istio configuration for possible problems

  • istioctl proxy-config all deploy/myapp

    Show the full Envoy proxy config for a deployment

all 19 istio commands