Created
June 25, 2021 13:21
-
-
Save cmwylie19/515cf6c505a55fa7d1472066fdfe805e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 80 | |
- kubeService: | |
clusterName: cluster-1 | |
name: product | |
namespace: gloo-mesh-test | |
subset: | |
version: v2 | |
weight: 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment