Bug 8949 - Cilium 使用eBPF bpf_redirect_peer(),容器无法采集网卡入口流量
Summary: Cilium 使用eBPF bpf_redirect_peer(),容器无法采集网卡入口流量
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: bpf (show other bugs) bpf
Version: 5.10.y-16
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xiangzao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-07 13:19 UTC by silence8013
Modified: 2024-05-07 13:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description silence8013 2024-05-07 13:19:27 UTC
Description of problem:
在引入 cilium 使用host routing 后,因为使用 eBPF 会将流量从 宿主网卡直接飞到 容器内的Pod 网卡中,从而跳过kernel 网络栈和veth网卡驱动,这种会导致 Pod 的入口网络流量无法采集。

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. kubernetes 集群使用Cilium CNI 并启动host routing。
2. Cadvisor 无法采集容器虚拟网卡veth rx向网络指标。
3.

Actual results:


Expected results:


Additional info:

此问题在linux kernel 6.6+ 已经fix,对应
https://github.com/torvalds/linux/commit/024ee930cb3c9ae49e4266aee89cfde0ebb407e1