kubescape / node-agent

Kubescape eBPF agent 🥷🏻
https://kubescape.io/
Apache License 2.0
8 stars 5 forks source link

Enabling custom sniffing time for pods (via label) #318

Closed slashben closed 5 months ago

slashben commented 5 months ago

Overview

This small feature code enables users to define per pod the length of the recording time of application profiles and not just rely on the global settings in the node-agent configuration "maxLearningPeriod".

The length of the learning period for a given pod's containers will be taken from the label kubescape.io/max-sniffing-time in the same format as the Helm chart's maxLearningPeriod value. If the label does not exist then the global configuration will be used as normal.

github-actions[bot] commented 5 months ago

Summary: