Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

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

Description

@iluxa

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions