測試時間: 2025-12-20 19:42:19 (UTC+8)
測試範圍: chaos Namespace
| 節點名稱 | 角色 | IP 位址 | 作業系統 | Kubernetes 版本 |
|---|---|---|---|---|
| master | Control Plane | 192.168.34.130 | Ubuntu 22.04.5 LTS | v1.35.0 |
| node1 | Worker | 192.168.34.132 | Ubuntu 22.04.5 LTS | v1.35.0 |
| node2 | Worker | 192.168.34.134 | Ubuntu 22.04.5 LTS | v1.35.0 |
| Namespace | Pod 名稱 | 狀態 | 標籤 | 所在節點 |
|---|---|---|---|---|
| chaos | badimage-75556795d4-rm4vb | ✅ Running | app=badimage | node1 |
| chaos | web-ff44d897b-cppmt | ✅ Running | app=web | node2 |
| 資源類型 | 狀態 | 問題數量 |
|---|---|---|
| Pod | ✅ OK | 0 |
| Node | ✅ OK | 0 |
| Deployment | ✅ OK | 0 |
| Service | ⚠️ ProblemDetected | 1 |
| Ingress | ✅ OK | 0 |
<aside> 🚨
問題資源: chaos/web-svc (Service)
錯誤訊息:
Service has no endpoints, expected label
app=WRONG
</aside>
<aside> 🤖
錯誤原因:
Service 無法找到任何 endpoints,因為預期的標籤 app=WRONG 與任何 Pod 都不匹配。
建議解決方案:
kubectl get pods --show-labels 檢查 Pod 標籤app=WRONG,或將 Service selector 修改為匹配現有標籤經過深入診斷,發現 Service selector 與 Pod label 不匹配: