Capture with Retina CLI
The capture command in Retina allows users to capture network traffic and metadata for the capture target, and send the data to the location defined by output configuration.
NOTE: captures can also be performed with a Capture CRD after installing Retina with capture support.
Capture Create
kubectl retina capture create [--flags]
creates a Capture with underlying Kubernetes jobs.
Selecting a Target
The target indicates where the packet capture will be performed. This can be set via --node-selectors
, --node-names
, --pod-selectors
and --namespace-selectors
flags. Run kubectl retina capture -h
for further details based on the Retina CLI version installed on your environment.
Note that Node Selectors are not compatible with Pod Selectors & Namespace Selectors pairs and the capture will not go through if all are populated.
If nothing is set, kubectl retina capture create
will use --node-selectors
with the default value shown below in Flags.
You can find target selection examples below.