Short-term Traffic Retention
Kubeshark provides real-time visibility into API traffic, enabling its users to view full API traffic details within a short-term retention window. This window is determined by the throughput and the storage allocated for it, all at the K8s node level. Once outside of this window, details are no longer available to view and attempting to do so will result in an error.
For information on long-term traffic retention, read the Traffic Recorder section.
Storage Limit & Guardrails
Because storage can fill up rapidly, we have established certain guardrails to prevent overuse of disk resources.
The storage limitation is regulated by the
tap.storagelimit configuration value, with the default set to
500Mi. This value represents a hard limit. If storage surpasses this limit, it will result in pod eviction. When the Worker pod is evicted, the storage is purged and the pod immediately restarts from scratch.
To increase this limit, simply provide a different value (e.g., setting it to 1GB with
When an L4 stream is dissected, a JSON file is generated with all relevant details. This file has a time to live of 5 minutes.
The actual L4 stream (PCAP) has a time to live of 10 seconds, enough for a script to copy it to a different folder if retention is required.