Compare commits

..

1 Commits

Author SHA1 Message Date
Volodymyr Stoiko
95c18b57a4 Use dissection image tag from worker (#1850) 2026-02-25 11:41:50 -08:00
6 changed files with 10 additions and 16 deletions

View File

@@ -62,5 +62,4 @@ func init() {
tapCmd.Flags().Bool(configStructs.TelemetryEnabledLabel, defaultTapConfig.Telemetry.Enabled, "Enable/disable Telemetry") tapCmd.Flags().Bool(configStructs.TelemetryEnabledLabel, defaultTapConfig.Telemetry.Enabled, "Enable/disable Telemetry")
tapCmd.Flags().Bool(configStructs.ResourceGuardEnabledLabel, defaultTapConfig.ResourceGuard.Enabled, "Enable/disable resource guard") tapCmd.Flags().Bool(configStructs.ResourceGuardEnabledLabel, defaultTapConfig.ResourceGuard.Enabled, "Enable/disable resource guard")
tapCmd.Flags().Bool(configStructs.WatchdogEnabled, defaultTapConfig.Watchdog.Enabled, "Enable/disable watchdog") tapCmd.Flags().Bool(configStructs.WatchdogEnabled, defaultTapConfig.Watchdog.Enabled, "Enable/disable watchdog")
tapCmd.Flags().String(configStructs.HelmChartPathLabel, defaultTapConfig.Release.HelmChartPath, "Path to a local Helm chart folder (overrides the remote Helm repo)")
} }

View File

@@ -45,7 +45,6 @@ const (
PcapDumpEnabled = "enabled" PcapDumpEnabled = "enabled"
PcapTime = "time" PcapTime = "time"
WatchdogEnabled = "watchdogEnabled" WatchdogEnabled = "watchdogEnabled"
HelmChartPathLabel = "release-helmChartPath"
) )
type ResourceLimitsHub struct { type ResourceLimitsHub struct {
@@ -212,7 +211,6 @@ type ReleaseConfig struct {
Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.com"` Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.com"`
Name string `yaml:"name" json:"name" default:"kubeshark"` Name string `yaml:"name" json:"name" default:"kubeshark"`
Namespace string `yaml:"namespace" json:"namespace" default:"default"` Namespace string `yaml:"namespace" json:"namespace" default:"default"`
HelmChartPath string `yaml:"helmChartPath" json:"helmChartPath" default:""`
} }
type TelemetryConfig struct { type TelemetryConfig struct {
@@ -316,7 +314,6 @@ type SnapshotsConfig struct {
} }
type DelayedDissectionConfig struct { type DelayedDissectionConfig struct {
Image string `yaml:"image" json:"image" default:"kubeshark/worker:master"`
CPU string `yaml:"cpu" json:"cpu" default:"1"` CPU string `yaml:"cpu" json:"cpu" default:"1"`
Memory string `yaml:"memory" json:"memory" default:"4Gi"` Memory string `yaml:"memory" json:"memory" default:"4Gi"`
} }

View File

@@ -40,10 +40,14 @@ spec:
- "{{ if hasKey .Values.tap.capture.dissection "stopAfter" }}{{ .Values.tap.capture.dissection.stopAfter }}{{ else }}5m{{ end }}" - "{{ if hasKey .Values.tap.capture.dissection "stopAfter" }}{{ .Values.tap.capture.dissection.stopAfter }}{{ else }}5m{{ end }}"
- -snapshot-size-limit - -snapshot-size-limit
- '{{ .Values.tap.snapshots.storageSize }}' - '{{ .Values.tap.snapshots.storageSize }}'
{{- if .Values.tap.delayedDissection.image }}
- -dissector-image - -dissector-image
- '{{ .Values.tap.delayedDissection.image }}' {{- if .Values.tap.docker.overrideImage.worker }}
{{- end }} - '{{ .Values.tap.docker.overrideImage.worker }}'
{{- else if .Values.tap.docker.overrideTag.worker }}
- '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.overrideTag.worker }}'
{{- else }}
- '{{ .Values.tap.docker.registry }}/worker:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}'
{{- end }}
{{- if .Values.tap.delayedDissection.cpu }} {{- if .Values.tap.delayedDissection.cpu }}
- -dissector-cpu - -dissector-cpu
- '{{ .Values.tap.delayedDissection.cpu }}' - '{{ .Values.tap.delayedDissection.cpu }}'

View File

@@ -35,7 +35,6 @@ tap:
storageSize: 1Gi storageSize: 1Gi
dbMaxSize: 500Mi dbMaxSize: 500Mi
delayedDissection: delayedDissection:
image: kubeshark/worker:master
cpu: "1" cpu: "1"
memory: 4Gi memory: 4Gi
snapshots: snapshots:

View File

@@ -67,10 +67,7 @@ func (h *Helm) Install() (rel *release.Release, err error) {
client.Namespace = h.releaseNamespace client.Namespace = h.releaseNamespace
client.ReleaseName = h.releaseName client.ReleaseName = h.releaseName
chartPath := config.Config.Tap.Release.HelmChartPath chartPath := os.Getenv(fmt.Sprintf("%s_HELM_CHART_PATH", strings.ToUpper(misc.Program)))
if chartPath == "" {
chartPath = os.Getenv(fmt.Sprintf("%s_HELM_CHART_PATH", strings.ToUpper(misc.Program)))
}
if chartPath == "" { if chartPath == "" {
var chartURL string var chartURL string
chartURL, err = repo.FindChartInRepoURL(h.repo, h.releaseName, "", "", "", "", getter.All(&cli.EnvSettings{})) chartURL, err = repo.FindChartInRepoURL(h.repo, h.releaseName, "", "", "", "", getter.All(&cli.EnvSettings{}))

View File

@@ -209,10 +209,8 @@ data:
proxy_set_header Authorization $http_authorization; proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization; proxy_pass_header Authorization;
proxy_connect_timeout 4s; proxy_connect_timeout 4s;
# Disable buffering for gRPC/Connect streaming proxy_read_timeout 120s;
client_max_body_size 0; proxy_send_timeout 12s;
proxy_request_buffering off;
proxy_buffering off;
proxy_pass_request_headers on; proxy_pass_request_headers on;
} }