-
-
Save tommeramber/d7701f9e5340f8470eb0475eada0e6cf to your computer and use it in GitHub Desktop.
Demo - Meetup - Fault Injection with Service Mesh
This file contains hidden or 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
oc apply -f ./config/istio/destinationrules-all.yaml | |
oc apply -f ./config/istio/virtual-services-default.yaml | |
oc apply -f ./config/istio/virtual-service-userprofile-50-50.yaml |
This file contains hidden or 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.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: boards | |
spec: | |
hosts: | |
- boards | |
http: | |
- fault: | |
delay: | |
fixedDelay: 5s | |
percentage: | |
value: 50 | |
route: | |
- destination: | |
host: boards |
This file contains hidden or 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.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: userprofile | |
spec: | |
hosts: | |
- userprofile | |
http: | |
- fault: | |
abort: | |
httpStatus: 503 | |
percentage: | |
value: 100 | |
route: | |
- destination: | |
host: userprofile | |
subset: v1 |
This file contains hidden or 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.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: userprofile | |
spec: | |
hosts: | |
- userprofile | |
http: | |
- fault: | |
abort: | |
httpStatus: 503 | |
percentage: | |
value: 50 | |
route: | |
- destination: | |
host: userprofile | |
subset: v1 | |
weight: 50 | |
- destination: | |
host: userprofile | |
subset: v3 | |
weight: 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment