Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend eBPF packet capture code to support Cg V1 in addition to V2 #108

Open
iluxa opened this issue Oct 21, 2024 · 1 comment
Open

Extend eBPF packet capture code to support Cg V1 in addition to V2 #108

iluxa opened this issue Oct 21, 2024 · 1 comment
Assignees

Comments

@iluxa
Copy link
Collaborator

iluxa commented Oct 21, 2024

In case of Linux kernel running supports Cgroup V2 (since version 4.5), but cluster works in Cgroup V1 it is possible to maintain custom Cgroup V2 hierarchy

unified Cgroup V2 hierarchy is enough to target all pods, however for pod targeting custom Cgroup V2 hierarchy should be applied.

Implementation proposal:

cgroup_skb/* programs can be always attached to the same created on tracer start Cgroup V2 hierarchy.

In case of cluster event (pod targeting is changed or pod created/deleted) custom Cgroup V2 cgroup.procs should be modified to reflect current pod targeting.

@alongir
Copy link
Member

alongir commented Nov 7, 2024

Update, Nov 7
Stuck on some issues, however still optimistic. A PR is expected in a few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants