Created
June 9, 2018 21:59
-
-
Save mhiro2/045058b7783aba4fd96f8452cb640232 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
$ 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