Skip to content

Commit 3fa2957

Browse files
committed
feat: gateway pod 삭제 카오스 실험 추가
1 parent 3c259f4 commit 3fa2957

2 files changed

Lines changed: 69 additions & 0 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ k8s/secrets.yml
5959
*.log
6060
logs/
6161

62+
# =========================
63+
# Chaos Toolkit
64+
# =========================
65+
chaos/journal.json
66+
6267
# =========================
6368
# Misc
6469
# =========================

chaos/gateway-pod-delete.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"title": "Gateway Pod 삭제 후 자동 복구 검증",
3+
"description": "단일 진입점인 Gateway Pod를 삭제하여 Kubernetes 자동 복구 능력을 검증한다. Pod 재생성 및 트래픽 수신까지의 복구 시간을 측정한다.",
4+
"tags": ["kubernetes", "gateway", "pod-delete", "resilience"],
5+
"contributions": {
6+
"reliability": "high",
7+
"security": "none",
8+
"scalability": "medium"
9+
},
10+
"steady-state-hypothesis": {
11+
"title": "Gateway 서비스가 정상 동작 중",
12+
"probes": [
13+
{
14+
"type": "probe",
15+
"name": "gateway-pod-is-running",
16+
"tolerance": true,
17+
"provider": {
18+
"type": "python",
19+
"module": "chaosk8s.pod.probes",
20+
"func": "pods_in_phase",
21+
"arguments": {
22+
"label_selector": "app=gateway",
23+
"phase": "Running",
24+
"ns": "opentraum"
25+
}
26+
}
27+
},
28+
{
29+
"type": "probe",
30+
"name": "gateway-deployment-is-available",
31+
"tolerance": true,
32+
"provider": {
33+
"type": "python",
34+
"module": "chaosk8s.probes",
35+
"func": "deployment_available_and_healthy",
36+
"arguments": {
37+
"name": "gateway",
38+
"ns": "opentraum"
39+
}
40+
}
41+
}
42+
]
43+
},
44+
"method": [
45+
{
46+
"type": "action",
47+
"name": "gateway-pod-삭제",
48+
"provider": {
49+
"type": "python",
50+
"module": "chaosk8s.pod.actions",
51+
"func": "terminate_pods",
52+
"arguments": {
53+
"label_selector": "app=gateway",
54+
"ns": "opentraum",
55+
"qty": 1
56+
}
57+
},
58+
"pauses": {
59+
"after": 40
60+
}
61+
}
62+
],
63+
"rollbacks": []
64+
}

0 commit comments

Comments
 (0)