lastwords
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.