E533 fix: Kubernetes integration when using cgroups v2 by rossf7 · Pull Request #327 · hubblo-org/scaphandre · GitHub
[go: up one dir, main page]

Skip to content

fix: Kubernetes integration when using cgroups v2#327

Open
rossf7 wants to merge 2 commits intohubblo-org:devfrom
rossf7:fix/k8s-cgroups-v2
Open

fix: Kubernetes integration when using cgroups v2#327
rossf7 wants to merge 2 commits intohubblo-org:devfrom
rossf7:fix/k8s-cgroups-v2

Conversation

@rossf7
Copy link
Contributor
@rossf7 rossf7 commented Jun 8, 2023

Hi @bpetit,
I had a problem when testing with ubuntu:22.04 since it uses cgroups v2.

The paths are now relative so I needed to remove the ^ from the regex.

/../../../kubepods-besteffort.slice/kubepods-besteffort-pod43a7b130_2354_4564_9628_554d82403c6f.slice/cri-containerd-339bb32e778c77fcfdf986785997959e4519dfdca5b9100d06aa00685145ce85.scope

I also tested with ubuntu:20.04 to check compatibility with cgroups v1.

.strip_prefix("cri-containerd-")
.unwrap()
.to_string();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to add this to be able to extract the container ID successfully.

benjaminlebigot pushed a commit to benjaminlebigot/scaphandre that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To do

Development

Successfully merging this pull request may close these issues.

1 participant

0