About PCAP capturing
To configure PCAP collection with NetCap, you must define two Kubernetes Custom Resources (CRs):
NetCaptureStorage- specifies the storage location for collected PCAP filesNetCaptureJob- defines the traffic capture configuration, including source interface(s), start time and duration, destination(s) for storing captured traffic, optional filtering or tagging parameters
Both CRs are then processed by NetCap Provider, which translates the configuration from CRs into a NATS Key-Value (KV) entry that configures all NetCap components accordingly. This approach allows for:
- Centralized configuration using Kubernetes CRs (
NetCaptureJobandNetCaptureStorage) - Automatic distribution of capture configuration to all NetCap components
- Fine-grained control over where (on which nodes and VPP instances) and when traffic is captured
- Flexible PCAP storage options (local disk, remote S3 storage, or SFTP server)
- CRs are Crossplane-managed resources, which enables integration with Crossplane composition