diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 0b6b1704c..218946ea0 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -182,6 +182,7 @@ type MiscConfig struct { ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"` DuplicateTimeframe string `yaml:"duplicateTimeframe" json:"duplicateTimeframe" default:"200ms"` DetectDuplicates bool `yaml:"detectDuplicates" json:"detectDuplicates" default:"false"` + StaleTimeoutSeconds int `yaml:"staleTimeoutSeconds" json:"staleTimeoutSeconds" default:"30"` } type TapConfig struct { diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index f1db6ae4c..e1310f0f2 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -73,6 +73,8 @@ spec: {{- end }} - -resolution-strategy - '{{ .Values.tap.misc.resolutionStrategy }}' + - -staletimeout + - {{ .Values.tap.misc.staleTimeoutSeconds }} {{- if .Values.tap.debug }} - -debug {{- end }} diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 86d83c0e6..ac3bc3cd7 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -149,6 +149,7 @@ tap: resolutionStrategy: auto duplicateTimeframe: 200ms detectDuplicates: false + staleTimeoutSeconds: 30 logs: file: "" grep: "" diff --git a/manifests/complete.yaml b/manifests/complete.yaml index bc6174687..3e51d5c17 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -488,6 +488,8 @@ spec: - -disable-ebpf - -resolution-strategy - 'auto' + - -staletimeout + - '30' image: 'docker.io/kubeshark/worker:v52.3.82' imagePullPolicy: Always name: sniffer