Morning cluster health check via chat
When to use: Daily, before stand-up — anything red? Any pods crashlooping?
Prerequisites
- kubeconfig on host — Usually ~/.kube/config
Flow
-
Start the MCP containerStart k8s-mcp-server via Docker mounting ~/.kube read-only.✓ Copied→ Container up
-
Run the checksAcross all namespaces, list pods not in Running state, nodes not Ready, and recent (last 1h) events of type Warning.✓ Copied→ Three-part health report
-
TriageFor each crashlooping pod, get last 50 log lines and propose most likely cause.✓ Copied→ Log excerpts + diagnoses
Outcome: 5-minute daily cluster pulse check.
Pitfalls
- Running
kubectl get eventscluster-wide floods context — Always filter by time and type