HabitaNexus/monorepo / skills/system-reliability-engineering/chaos-engineering
chaos-engineering
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.0 KB |
| scripts/README.md | markdown | 1.7 KB |
| scripts/chaos_monkey.py | script | 8.6 KB |
| scripts/experiments.py | script | 7.8 KB |
| scripts/requirements.txt | manifest | 90 B |
scripts/README.md
View on GitHub# Chaos Engineering Scripts
Scripts ejecutables para chaos engineering y resilience testing.
## 📁 Archivos
- **`chaos_monkey.py`** - Chaos Monkey para Kubernetes (Python CLI)
- **`experiments.py`** - Framework para ejecutar y gestionar chaos experiments (Python CLI)
- **`requirements.txt`** - Dependencias Python
- **`examples/`** - YAML de Litmus como referencia (no ejecutables)
## 🚀 Quick Start
### Instalación
```bash
pip install -r requirements.txt
```
### Chaos Monkey
```bash
# Ejecutar experimento (pod-delete)
python chaos_monkey.py run --experiment-type pod-delete
# Habilitar/deshabilitar
python chaos_monkey.py enable
python chaos_monkey.py disable
# Configurar probabilidad
python chaos_monkey.py set-probability --probability 0.1
```
### Experiments
```bash
# Ejecutar experimento
python experiments.py run --name pod-delete
# Listar experimentos
python experiments.py list
```
## 📋 Requisitos
- **Kubernetes Access:** kubeconfig configurado
- **Permisos:** Permisos para eliminar pods en namespaces con `chaos.enabled=true` annotation
- **Annotations:** Deployments deben tener `chaos.enabled=true` annotation para ser elegibles
## 🎯 Uso
### Anotar Deployment para Chaos
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
annotations:
chaos.enabled: "true"
spec:
# ...
```
### Ejecutar Chaos Monkey
```bash
# Ejecutar con probabilidad del 10%
python chaos_monkey.py run --experiment-type pod-delete --probability 0.1
```
## 📖 Documentación Completa
Ver [`../SKILL.md`](../SKILL.md) para documentación completa sobre:
- Chaos engineering principles
- Litmus experiments
- Experiment design
- Resilience testing strategies
- Best practices
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |