Skip to content

Commit

Permalink
Only mirror GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinVW committed Oct 17, 2024
1 parent f933a1a commit fdf84c1
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/k8s/customermanagementapi-mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,27 @@ spec:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: customermanagementapi
name: customermanagementapi-mirror-get
namespace: pitstop
spec:
hosts:
- customermanagementapi
http:
- route:
- destination:
host: customermanagementapi
subset: v1
weight: 100
mirror:
- match:
- method:
exact: GET
route:
- destination:
host: customermanagementapi
subset: v1
weight: 100
mirror:
host: customermanagementapi
subset: v2
mirrorPercentage:
value: 100
- route:
- destination:
host: customermanagementapi
subset: v2
mirrorPercentage:
value: 100
subset: v1
weight: 100

0 comments on commit fdf84c1

Please sign in to comment.