lastwords

•
5
•

Captures memory profiles, logs, and core dumps from Kubernetes containers before OOM kills and crashes occur.

lastwords is a lightweight Kubernetes node agent designed to capture vital diagnostic data before it is lost to container restarts and kernel kills. Deployed as a DaemonSet, it continuously monitors cgroup memory metrics to trigger preemptive snapshots—such as JVM class histograms, thread dumps, and Go pprof heap profiles—right before an out-of-memory SIGKILL occurs. When containers crash or dump core, lastwords archives the dead container's logs, pod events, and core dumps locally or to S3. Diagnostic summaries and captures can be reviewed via a dedicated kubectl CLI plugin or queried by AI incident-response agents using its built-in Model Context Protocol (MCP) server.

주요 기능

01Automatic preservation of historical crash-loop container logs before rotation by kubelet
025 GitHub stars
03Preemptive memory snapshots including Go pprof profiles and JVM heap histograms before OOM kills
04Configurable webhook and Slack notifications with HMAC-SHA256 signature verification
05Crash and core dump capture linking gzipped cores, parsed stack traces, and pod events directly to pods
06Built-in MCP server allowing AI agents to inspect, list, and read diagnostic captures

사용 사례

01Diagnosing OOMKilled containers in Kubernetes where standard heap dumps fail to trigger
02Providing automated AI incident investigation agents with root-cause diagnostic context via MCP
03Debugging native binary crashes and SIGSEGV events in Kubernetes pods using captured core dumps