mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-03 19:40:05 +00:00
templating bpf privileged helm value.
This commit is contained in:
parent
b377bfe35f
commit
d4d1001cd8
@ -178,6 +178,7 @@ type CapabilitiesConfig struct {
|
|||||||
NetworkCapture []string `yaml:"networkCapture" json:"networkCapture" default:"[]"`
|
NetworkCapture []string `yaml:"networkCapture" json:"networkCapture" default:"[]"`
|
||||||
ServiceMeshCapture []string `yaml:"serviceMeshCapture" json:"serviceMeshCapture" default:"[]"`
|
ServiceMeshCapture []string `yaml:"serviceMeshCapture" json:"serviceMeshCapture" default:"[]"`
|
||||||
EBPFCapture []string `yaml:"ebpfCapture" json:"ebpfCapture" default:"[]"`
|
EBPFCapture []string `yaml:"ebpfCapture" json:"ebpfCapture" default:"[]"`
|
||||||
|
BpfPrivileged bool `yaml:"bpfPrivileged" json:"bpfPrivileged" default:"false"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MetricsConfig struct {
|
type MetricsConfig struct {
|
||||||
|
@ -37,8 +37,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
|
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
|
||||||
name: check-bpf
|
name: check-bpf
|
||||||
|
{{- if .Values.tap.capabilities.bpfPrivileged }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /sys
|
- mountPath: /sys
|
||||||
name: sys
|
name: sys
|
||||||
@ -53,8 +55,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
|
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
|
||||||
name: init-bpf
|
name: init-bpf
|
||||||
|
{{- if .Values.tap.capabilities.bpfPrivileged }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /sys
|
- mountPath: /sys
|
||||||
name: sys
|
name: sys
|
||||||
|
@ -126,6 +126,7 @@ tap:
|
|||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
- SYS_RESOURCE
|
- SYS_RESOURCE
|
||||||
- IPC_LOCK
|
- IPC_LOCK
|
||||||
|
bpfPrivileged: false
|
||||||
globalFilter: ""
|
globalFilter: ""
|
||||||
enabledDissectors:
|
enabledDissectors:
|
||||||
- amqp
|
- amqp
|
||||||
|
Loading…
Reference in New Issue
Block a user