Add DisableCgroupIdResolution field to MiscConfig struct

This commit is contained in:
M. Mert Yildiran 2024-05-25 05:18:41 +03:00
parent af2086a54d
commit c2b73025f3
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 10 additions and 3 deletions

View File

@ -154,6 +154,7 @@ type MiscConfig struct {
TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"`
DisableCgroupIdResolution bool `yaml:"disableCgroupIdResolution" json:"disableCgroupIdResolution" default:"false"`
}
type TapConfig struct {

View File

@ -62,6 +62,9 @@ spec:
{{- if .Values.tap.kernelModule.enabled }}
- -kernel-module
{{- end }}
{{- if .Values.tap.misc.disableCgroupIdResolution }}
- -disable-cgroup-id-resolution
{{- end }}
{{- if .Values.tap.debug }}
- -debug
- -dumptracer

View File

@ -122,8 +122,10 @@ tap:
trafficSampleRate: 100
tcpStreamChannelTimeoutMs: 10000
tcpStreamChannelTimeoutShow: false
disableCgroupIdResolution: false
logs:
file: ""
grep: ""
kube:
configPath: ""
context: ""

View File

@ -244,6 +244,7 @@ rules:
- extensions
- apps
resources:
- nodes
- pods
- services
- endpoints
@ -600,12 +601,12 @@ spec:
- name: lib-modules
hostPath:
path: /lib/modules
- name: data
emptyDir:
sizeLimit: 500Mi
- hostPath:
path: /etc/os-release
name: os-release
- name: data
emptyDir:
sizeLimit: 500Mi
---
# Source: kubeshark/templates/04-hub-deployment.yaml
apiVersion: apps/v1