mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-28 20:06:36 +00:00
Merge branch 'master' into release-patch
This commit is contained in:
commit
ef7172ba72
@ -150,6 +150,7 @@ type ConfigStruct struct {
|
|||||||
HeadlessMode bool `yaml:"headless" json:"headless" default:"false"`
|
HeadlessMode bool `yaml:"headless" json:"headless" default:"false"`
|
||||||
License string `yaml:"license" json:"license" default:""`
|
License string `yaml:"license" json:"license" default:""`
|
||||||
CloudLicenseEnabled bool `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"`
|
CloudLicenseEnabled bool `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"`
|
||||||
|
DemoModeEnabled bool `yaml:"demoModeEnabled" json:"demoModeEnabled" default:"false"`
|
||||||
SupportChatEnabled bool `yaml:"supportChatEnabled" json:"supportChatEnabled" default:"true"`
|
SupportChatEnabled bool `yaml:"supportChatEnabled" json:"supportChatEnabled" default:"true"`
|
||||||
InternetConnectivity bool `yaml:"internetConnectivity" json:"internetConnectivity" default:"true"`
|
InternetConnectivity bool `yaml:"internetConnectivity" json:"internetConnectivity" default:"true"`
|
||||||
Scripting configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"`
|
Scripting configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"`
|
||||||
|
@ -313,6 +313,7 @@ type TapConfig struct {
|
|||||||
Pprof PprofConfig `yaml:"pprof" json:"pprof"`
|
Pprof PprofConfig `yaml:"pprof" json:"pprof"`
|
||||||
Misc MiscConfig `yaml:"misc" json:"misc"`
|
Misc MiscConfig `yaml:"misc" json:"misc"`
|
||||||
SecurityContext SecurityContextConfig `yaml:"securityContext" json:"securityContext"`
|
SecurityContext SecurityContextConfig `yaml:"securityContext" json:"securityContext"`
|
||||||
|
MountBpf bool `yaml:"mountBpf" json:"mountBpf" default:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (config *TapConfig) PodRegex() *regexp.Regexp {
|
func (config *TapConfig) PodRegex() *regexp.Regexp {
|
||||||
|
@ -205,6 +205,7 @@ Example for overriding image names:
|
|||||||
| `tap.globalFilter` | Prepends to any KFL filter and can be used to limit what is visible in the dashboard. For example, `redact("request.headers.Authorization")` will redact the appropriate field. Another example `!dns` will not show any DNS traffic. | `""` |
|
| `tap.globalFilter` | Prepends to any KFL filter and can be used to limit what is visible in the dashboard. For example, `redact("request.headers.Authorization")` will redact the appropriate field. Another example `!dns` will not show any DNS traffic. | `""` |
|
||||||
| `tap.metrics.port` | Pod port used to expose Prometheus metrics | `49100` |
|
| `tap.metrics.port` | Pod port used to expose Prometheus metrics | `49100` |
|
||||||
| `tap.enabledDissectors` | This is an array of strings representing the list of supported protocols. Remove or comment out redundant protocols (e.g., dns).| The default list excludes: `udp` and `tcp` |
|
| `tap.enabledDissectors` | This is an array of strings representing the list of supported protocols. Remove or comment out redundant protocols (e.g., dns).| The default list excludes: `udp` and `tcp` |
|
||||||
|
| `tap.mountBpf` | BPF filesystem needs to be mounted for eBPF to work properly. This helm value determines whether Kubeshark will attempt to mount the filesystem. This option is not required if filesystem is already mounts. │ `true`|
|
||||||
| `logs.file` | Logs dump path | `""` |
|
| `logs.file` | Logs dump path | `""` |
|
||||||
| `pcapdump.enabled` | Enable recording of all traffic captured according to other parameters. Whatever Kubeshark captures, considering pod targeting rules, will be stored in pcap files ready to be viewed by tools | `true` |
|
| `pcapdump.enabled` | Enable recording of all traffic captured according to other parameters. Whatever Kubeshark captures, considering pod targeting rules, will be stored in pcap files ready to be viewed by tools | `true` |
|
||||||
| `pcapdump.maxTime` | The time window into the past that will be stored. Older traffic will be discarded. | `2h` |
|
| `pcapdump.maxTime` | The time window into the past that will be stored. Older traffic will be discarded. | `2h` |
|
||||||
|
@ -37,7 +37,15 @@ spec:
|
|||||||
- name: REACT_APP_TIMEZONE
|
- name: REACT_APP_TIMEZONE
|
||||||
value: '{{ not (eq .Values.timezone "") | ternary .Values.timezone " " }}'
|
value: '{{ not (eq .Values.timezone "") | ternary .Values.timezone " " }}'
|
||||||
- name: REACT_APP_SCRIPTING_DISABLED
|
- name: REACT_APP_SCRIPTING_DISABLED
|
||||||
value: '{{ .Values.tap.liveConfigMapChangesDisabled }}'
|
value: '{{- if .Values.tap.liveConfigMapChangesDisabled -}}
|
||||||
|
{{- if .Values.demoModeEnabled -}}
|
||||||
|
{{ .Values.demoModeEnabled | ternary false true }}
|
||||||
|
{{- else -}}
|
||||||
|
true
|
||||||
|
{{- end }}
|
||||||
|
{{- else -}}
|
||||||
|
false
|
||||||
|
{{- end }}'
|
||||||
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
- name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED
|
||||||
value: '{{ .Values.tap.liveConfigMapChangesDisabled }}'
|
value: '{{ .Values.tap.liveConfigMapChangesDisabled }}'
|
||||||
- name: REACT_APP_PRESET_FILTERS_CHANGING_ENABLED
|
- name: REACT_APP_PRESET_FILTERS_CHANGING_ENABLED
|
||||||
|
@ -27,7 +27,15 @@ data:
|
|||||||
AUTH_SAML_ROLE_ATTRIBUTE: '{{ .Values.tap.auth.saml.roleAttribute }}'
|
AUTH_SAML_ROLE_ATTRIBUTE: '{{ .Values.tap.auth.saml.roleAttribute }}'
|
||||||
AUTH_SAML_ROLES: '{{ .Values.tap.auth.saml.roles | toJson }}'
|
AUTH_SAML_ROLES: '{{ .Values.tap.auth.saml.roles | toJson }}'
|
||||||
TELEMETRY_DISABLED: '{{ not .Values.internetConnectivity | ternary "true" (not .Values.tap.telemetry.enabled | ternary "true" "false") }}'
|
TELEMETRY_DISABLED: '{{ not .Values.internetConnectivity | ternary "true" (not .Values.tap.telemetry.enabled | ternary "true" "false") }}'
|
||||||
SCRIPTING_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
SCRIPTING_DISABLED: '{{- if .Values.tap.liveConfigMapChangesDisabled -}}
|
||||||
|
{{- if .Values.demoModeEnabled -}}
|
||||||
|
{{ .Values.demoModeEnabled | ternary false true }}
|
||||||
|
{{- else -}}
|
||||||
|
true
|
||||||
|
{{- end }}
|
||||||
|
{{- else -}}
|
||||||
|
false
|
||||||
|
{{- end }}'
|
||||||
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
TARGETED_PODS_UPDATE_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
||||||
PRESET_FILTERS_CHANGING_ENABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "false" "true" }}'
|
PRESET_FILTERS_CHANGING_ENABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "false" "true" }}'
|
||||||
RECORDING_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
RECORDING_DISABLED: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "true" "" }}'
|
||||||
|
@ -209,6 +209,7 @@ tap:
|
|||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
- SYS_RESOURCE
|
- SYS_RESOURCE
|
||||||
- IPC_LOCK
|
- IPC_LOCK
|
||||||
|
mountBpf: true
|
||||||
logs:
|
logs:
|
||||||
file: ""
|
file: ""
|
||||||
grep: ""
|
grep: ""
|
||||||
|
@ -523,6 +523,20 @@ spec:
|
|||||||
name: kubeshark-worker-daemon-set
|
name: kubeshark-worker-daemon-set
|
||||||
namespace: kubeshark
|
namespace: kubeshark
|
||||||
spec:
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- mkdir -p /sys/fs/bpf && mount | grep -q '/sys/fs/bpf' || mount -t bpf bpf /sys/fs/bpf
|
||||||
|
image: 'docker.io/kubeshark/worker:v52.4'
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: mount-bpf
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /sys
|
||||||
|
name: sys
|
||||||
|
mountPropagation: Bidirectional
|
||||||
containers:
|
containers:
|
||||||
- command:
|
- command:
|
||||||
- ./worker
|
- ./worker
|
||||||
|
Loading…
Reference in New Issue
Block a user