Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Created June 25, 2021 13:26
Show Gist options
  • Save cmwylie19/1653404901d5872b9c0a4cb63f5a85ca to your computer and use it in GitHub Desktop.
Save cmwylie19/1653404901d5872b9c0a4cb63f5a85ca to your computer and use it in GitHub Desktop.
apiVersion: networking.mesh.gloo.solo.io/v1
kind: TrafficPolicy
metadata:
name: api-product-traffic-policy
namespace: gloo-mesh-config
spec:
destinationSelector:
- kubeServiceRefs:
services:
- clusterName: cluster-1
name: api
namespace: gloo-mesh-test
httpRequestMatchers:
- prefix: /product
policy:
trafficShift:
destinations:
- kubeService:
clusterName: cluster-1
name: product
namespace: gloo-mesh-test
subset:
version: v1
weight: 0
- kubeService:
clusterName: cluster-1
name: product
namespace: gloo-mesh-test
subset:
version: v2
weight: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment