Description
k8spacket is a tool for Kubernetes that collects TCP traffic and TLS connection metadata inside a cluster using eBPF and shows it in Grafana dashboards. Since version 2.0.0 it is fully based on eBPF: it uses the inet_sock_set_state tracepoint to follow TCP connections and traffic control filters on ingress and egress to capture the TLS handshake. That version needs Linux kernel 5.4 or later with BTF enabled. Dashboards include a node graph of cluster TCP traffic, a view of TLS connections and certificates including the server certificate chain, raw TLS metrics, and a TLS certificate expiration board that sorts certificates by how soon they expire and makes it easy to build alerts. Since 1.0.0 the architecture uses Go plugins, with a plugin for metrics about TLS handshakes inside and outside the cluster.…
Highlights
- eBPF-based TCP traffic collection
- TLS handshake and certificate metadata
- Grafana node graph of cluster traffic
- TLS certificate expiration dashboard
- Plugin-based architecture
Ratings & Reviews
No ratings yet
Be the first to rate K8spacket.
People also visit
K8spacket FAQ
What does k8spacket do?
It collects TCP traffic and TLS connection metadata in a Kubernetes cluster with eBPF and visualizes them in Grafana.
What are the kernel requirements?
Version 2.x needs Linux kernel 5.4 or later with BTF enabled.
Can it warn me about expiring certificates?
Yes. The TLS certificate expiration dashboard shows time remaining until expiry, sorted earliest first, and makes it easy to build alerts.
Which Grafana plugins are needed?
The TLS connections dashboard depends on the marcusolsson-json-datasource and marcusolsson-dynamictext-panel plugins.
How does it capture TLS details?
Traffic control and queueing discipline filters on ingress and egress collect information about the TLS handshake.
What are the best K8spacket alternatives?
Popular alternatives to K8spacket include Netobserv Operator, Podtrace and Retina. See all K8spacket alternatives




