Morning cluster health check via chat
何時使用: Daily, before stand-up — anything red? Any pods crashlooping?
前置條件
- kubeconfig on host — Usually ~/.kube/config
步驟
-
Start the MCP containerStart k8s-mcp-server via Docker mounting ~/.kube read-only.✓ 已複製→ Container up
-
Run the checksAcross all namespaces, list pods not in Running state, nodes not Ready, and recent (last 1h) events of type Warning.✓ 已複製→ Three-part health report
-
TriageFor each crashlooping pod, get last 50 log lines and propose most likely cause.✓ 已複製→ Log excerpts + diagnoses
結果: 5-minute daily cluster pulse check.
注意事項
- Running
kubectl get eventscluster-wide floods context — Always filter by time and type