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"` TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"` TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"` TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"`
DisableCgroupIdResolution bool `yaml:"disableCgroupIdResolution" json:"disableCgroupIdResolution" default:"false"`
} }
type TapConfig struct { type TapConfig struct {

View File

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

View File

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

View File

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