From c2b73025f300f4e8bfe9fd53dae9f995f010cda8 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Sat, 25 May 2024 05:18:41 +0300 Subject: [PATCH] :sparkles: Add `DisableCgroupIdResolution` field to `MiscConfig` struct --- config/configStructs/tapConfig.go | 1 + helm-chart/templates/09-worker-daemon-set.yaml | 3 +++ helm-chart/values.yaml | 2 ++ manifests/complete.yaml | 7 ++++--- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 2c8b68c33..804fc0d0c 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -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 { diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index cb9e09598..5dcb87525 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -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 diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 20d4c8144..3c8ae4fdc 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -122,8 +122,10 @@ tap: trafficSampleRate: 100 tcpStreamChannelTimeoutMs: 10000 tcpStreamChannelTimeoutShow: false + disableCgroupIdResolution: false logs: file: "" + grep: "" kube: configPath: "" context: "" diff --git a/manifests/complete.yaml b/manifests/complete.yaml index 55e385bff..01dc758b2 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -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