Shadowing

Enables traffic shadowing for the route.

Traffic shadowing is useful when you want to preview the behavior of a service in response to real production traffic without having to deploy your service in the critical path of production traffic. In the example below, all traffic going to petstore is also forwarded to petstore-v2.

apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
  name: 'default'
  namespace: 'gloo-system'
spec:
  virtualHost:
    domains:
    - '*'
    routes:
    - matcher:
        prefix: '/petstore'
      routeAction:
        single:
          upstream:
            name: 'petstore'
            namespace: 'gloo-system'
      routePlugins:
        shadowing:
          upstream:
            name: 'petstore-v2'
            namespace: 'gloo-system'
          percentage: 100