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