mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 13:04:13 +00:00
✨ Add TcpStreamChannelTimeoutShow
field to MiscConfig
This commit is contained in:
@@ -141,9 +141,12 @@ type MetricsConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MiscConfig struct {
|
type MiscConfig struct {
|
||||||
JsonTTL string `yaml:"jsonTTL" json:"jsonTTL" default:"5m"`
|
JsonTTL string `yaml:"jsonTTL" json:"jsonTTL" default:"5m"`
|
||||||
PcapTTL string `yaml:"pcapTTL" json:"pcapTTL" default:"10s"`
|
PcapTTL string `yaml:"pcapTTL" json:"pcapTTL" default:"10s"`
|
||||||
PcapErrorTTL string `yaml:"pcapErrorTTL" json:"pcapErrorTTL" default:"60s"`
|
PcapErrorTTL string `yaml:"pcapErrorTTL" json:"pcapErrorTTL" default:"60s"`
|
||||||
|
TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
|
||||||
|
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
|
||||||
|
TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TapConfig struct {
|
type TapConfig struct {
|
||||||
@@ -180,8 +183,6 @@ type TapConfig struct {
|
|||||||
Capabilities CapabilitiesConfig `yaml:"capabilities" json:"capabilities"`
|
Capabilities CapabilitiesConfig `yaml:"capabilities" json:"capabilities"`
|
||||||
GlobalFilter string `yaml:"globalFilter" json:"globalFilter"`
|
GlobalFilter string `yaml:"globalFilter" json:"globalFilter"`
|
||||||
Metrics MetricsConfig `yaml:"metrics" json:"metrics"`
|
Metrics MetricsConfig `yaml:"metrics" json:"metrics"`
|
||||||
TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
|
|
||||||
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
|
|
||||||
Misc MiscConfig `yaml:"misc" json:"misc"`
|
Misc MiscConfig `yaml:"misc" json:"misc"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,13 +24,13 @@ rules:
|
|||||||
- list
|
- list
|
||||||
- get
|
- get
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- namespaces
|
- namespaces
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
resourceNames:
|
resourceNames:
|
||||||
- kube-system
|
- kube-system
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
@@ -84,7 +84,9 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: TCP_STREAM_CHANNEL_TIMEOUT_MS
|
- name: TCP_STREAM_CHANNEL_TIMEOUT_MS
|
||||||
value: '{{ .Values.tap.tcpStreamChannelTimeoutMs }}'
|
value: '{{ .Values.tap.misc.tcpStreamChannelTimeoutMs }}'
|
||||||
|
- name: TCP_STREAM_CHANNEL_TIMEOUT_SHOW
|
||||||
|
value: '{{ .Values.tap.misc.tcpStreamChannelTimeoutShow }}'
|
||||||
- name: KUBESHARK_CLOUD_API_URL
|
- name: KUBESHARK_CLOUD_API_URL
|
||||||
value: 'https://api.kubeshark.co'
|
value: 'https://api.kubeshark.co'
|
||||||
resources:
|
resources:
|
||||||
|
@@ -24,7 +24,7 @@ data:
|
|||||||
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.targetedPodsUpdateDisabled | ternary "true" "" }}'
|
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.targetedPodsUpdateDisabled | ternary "true" "" }}'
|
||||||
RECORDING_DISABLED: '{{ .Values.tap.recordingDisabled | ternary "true" "" }}'
|
RECORDING_DISABLED: '{{ .Values.tap.recordingDisabled | ternary "true" "" }}'
|
||||||
GLOBAL_FILTER: {{ include "kubeshark.escapeDoubleQuotes" .Values.tap.globalFilter | quote }}
|
GLOBAL_FILTER: {{ include "kubeshark.escapeDoubleQuotes" .Values.tap.globalFilter | quote }}
|
||||||
TRAFFIC_SAMPLE_RATE: '{{ .Values.tap.trafficSampleRate }}'
|
TRAFFIC_SAMPLE_RATE: '{{ .Values.tap.misc.trafficSampleRate }}'
|
||||||
JSON_TTL: '{{ .Values.tap.misc.jsonTTL }}'
|
JSON_TTL: '{{ .Values.tap.misc.jsonTTL }}'
|
||||||
PCAP_TTL: '{{ .Values.tap.misc.pcapTTL }}'
|
PCAP_TTL: '{{ .Values.tap.misc.pcapTTL }}'
|
||||||
PCAP_ERROR_TTL: '{{ .Values.tap.misc.pcapErrorTTL }}'
|
PCAP_ERROR_TTL: '{{ .Values.tap.misc.pcapErrorTTL }}'
|
||||||
|
@@ -111,12 +111,13 @@ tap:
|
|||||||
globalFilter: ""
|
globalFilter: ""
|
||||||
metrics:
|
metrics:
|
||||||
port: 49100
|
port: 49100
|
||||||
trafficSampleRate: 100
|
|
||||||
tcpStreamChannelTimeoutMs: 10000
|
|
||||||
misc:
|
misc:
|
||||||
jsonTTL: 5m
|
jsonTTL: 5m
|
||||||
pcapTTL: 10s
|
pcapTTL: 10s
|
||||||
pcapErrorTTL: 60s
|
pcapErrorTTL: 60s
|
||||||
|
trafficSampleRate: 100
|
||||||
|
tcpStreamChannelTimeoutMs: 10000
|
||||||
|
tcpStreamChannelTimeoutShow: false
|
||||||
logs:
|
logs:
|
||||||
file: ""
|
file: ""
|
||||||
kube:
|
kube:
|
||||||
|
@@ -251,6 +251,14 @@ rules:
|
|||||||
- list
|
- list
|
||||||
- get
|
- get
|
||||||
- watch
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- namespaces
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
resourceNames:
|
||||||
|
- kube-system
|
||||||
---
|
---
|
||||||
# Source: kubeshark/templates/03-cluster-role-binding.yaml
|
# Source: kubeshark/templates/03-cluster-role-binding.yaml
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
@@ -476,6 +484,8 @@ spec:
|
|||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: TCP_STREAM_CHANNEL_TIMEOUT_MS
|
- name: TCP_STREAM_CHANNEL_TIMEOUT_MS
|
||||||
value: '10000'
|
value: '10000'
|
||||||
|
- name: TCP_STREAM_CHANNEL_TIMEOUT_SHOW
|
||||||
|
value: 'false'
|
||||||
- name: KUBESHARK_CLOUD_API_URL
|
- name: KUBESHARK_CLOUD_API_URL
|
||||||
value: 'https://api.kubeshark.co'
|
value: 'https://api.kubeshark.co'
|
||||||
resources:
|
resources:
|
||||||
|
Reference in New Issue
Block a user