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