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

fix: Kubernetes integration when using cgroups v2 #327

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

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.

@bpetit bpetit added this to Triage in General Jun 8, 2023
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
General
Triage
Development

Successfully merging this pull request may close these issues.

None yet

1 participant