Created
May 21, 2020 14:03
-
-
Save gtfisher/a866db237ab3f30a3040720e602e43e3 to your computer and use it in GitHub Desktop.
Chaos Toolkit Experiment using litmus chaos
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
{ | |
"version": "1.0.0", | |
"title": "Website responds with success status, when the server container restarts ", | |
"description": "Check the Website continues to responds with success status when litmus chaos restarts a server container.", | |
"tags": [ | |
"platform:Staging Cluster", | |
"service:Website", | |
"turbulence:litmuschaos" | |
], | |
"configuration": { | |
"endpoint_url": { | |
"type": "env", | |
"key": "ENDPOINT_URL" | |
}, | |
"chaos_yaml": { | |
"type": "env", | |
"key": "CHAOS_YAML" | |
} | |
}, | |
"contributions": { | |
"availability": "high", | |
"reliability": "high", | |
"safety": "none", | |
"security": "none", | |
"performability": "mdeium" | |
}, | |
"steady-state-hypothesis": { | |
"title": "Website responds with success", | |
"probes": [ | |
{ | |
"type": "probe", | |
"name": "website-must-respond-normally", | |
"tolerance": 200, | |
"provider": { | |
"type": "http", | |
"url": "${endpoint_url}", | |
"timeout": 3 | |
} | |
} | |
] | |
}, | |
"method": [ | |
{ | |
"type": "action", | |
"name": "Restart the webserver container with litmus chaos", | |
"provider": { | |
"type": "process", | |
"path": "kubectl", | |
"arguments": "apply -f ${chaos_yaml}" | |
} | |
} | |
], | |
"rollbacks": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment