Skip to content

Instantly share code, notes, and snippets.

@mhiro2
Created June 9, 2018 21:59
Show Gist options
  • Save mhiro2/045058b7783aba4fd96f8452cb640232 to your computer and use it in GitHub Desktop.
Save mhiro2/045058b7783aba4fd96f8452cb640232 to your computer and use it in GitHub Desktop.
$ istioctl replace -f samples/bookinfo/routing/route-rule-ratings-test-abort.yaml
Updated config virtual-service/default/ratings to revision 45992
$ istioctl get virtualservice ratings -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: ratings
namespace: default
resourceVersion: "45992"
spec:
hosts:
- ratings
http:
- fault:
abort:
httpStatus: 500
percent: 100
match:
- headers:
cookie:
regex: ^(.*?;)?(user=jason)(;.*)?$
route:
- destination:
host: ratings
subset: v1
- route:
- destination:
host: ratings
subset: v1
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment