Skip to content

Commit 95be01e

Browse files
authored
fix: add envFrom to raw netmon manifest and reduce eBPF log noise (#374)
- Add envFrom block to zxporter-netmon.yaml so the raw manifest injects credentials from devzero-zxporter-env-config and devzero-zxporter-token, matching the helm chart behaviour (both optional to avoid pod failures when the secret/configmap is absent) - Downgrade non-DNS packet parse errors in the eBPF tracer from Error to debug level (V(1)); these are expected for non-DNS traffic in netfilter mode and were producing excessive log spam
1 parent 58db2bf commit 95be01e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

config/zxporter-netmon.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ spec:
3939
- name: http
4040
containerPort: 8081
4141
protocol: TCP
42+
envFrom:
43+
- configMapRef:
44+
name: devzero-zxporter-env-config
45+
optional: true
46+
- secretRef:
47+
name: devzero-zxporter-token
48+
optional: true
4249
env:
4350
- name: NODE_NAME
4451
valueFrom:

internal/networkmonitor/ebpf/tracer_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (t *Tracer) Run(ctx context.Context) error {
184184
// Parse the full raw packet captured from eBPF
185185
event, err := parseEvent(record.RawSample)
186186
if err != nil {
187-
t.log.Error(err, "parsing event")
187+
t.log.V(1).Info("skipping non-DNS event", "err", err)
188188
continue
189189
}
190190

0 commit comments

Comments
 (0)