Skip to content

Instantly share code, notes, and snippets.

@gtfisher
Created May 21, 2020 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtfisher/a866db237ab3f30a3040720e602e43e3 to your computer and use it in GitHub Desktop.
Save gtfisher/a866db237ab3f30a3040720e602e43e3 to your computer and use it in GitHub Desktop.
Chaos Toolkit Experiment using litmus chaos
{
"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