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