Skip to content

Instantly share code, notes, and snippets.

@mhiro2
Created June 9, 2018 21:54
Show Gist options
  • Save mhiro2/4e596305104ca97e48fefcba1773a32c to your computer and use it in GitHub Desktop.
Save mhiro2/4e596305104ca97e48fefcba1773a32c to your computer and use it in GitHub Desktop.
$ istioctl replace -f samples/bookinfo/routing/route-rule-ratings-test-delay.yaml
Updated config virtual-service/default/ratings to revision 44630
$ istioctl get virtualservice ratings -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: ratings
namespace: default
resourceVersion: "44630"
spec:
hosts:
- ratings
http:
- fault:
delay:
fixedDelay: 7.000s
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