-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
api, cgroupv2: skip setting the devices cgroup #2474
Comments
😬 Is there a reason for wanting to skip the devices cgroup? The hard requirement for the devices cgroup is to make sure we have a fail-secure setup (if you don't set the devices whitelist, you will allow users to do all sorts of scary things). We could make it so that this requirement is only present for |
the Kubelet uses the libcontainer code to create the parent cgroups (e.g. /sys/fs/cgroup/kubepods). Each container will have its own cgroup under |
Ah okay. Yeah we might need to add a way to configure that. The only important thing is that this should be strictly opt-out with a fairly large warning sign next to the configuration option. |
Addressed this one in #2490 |
the devices cgroup is not used at all by Kubernetes: /~https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/cm/container_manager_linux.go#L378-L385 Since the cost of running such eBPF program is close to 0, I am fine if the underlying issue is addressed instead of offering a different API. |
Well, that is kinda true, but only applies to However, Kubernetes is implicitly using it via the CRI api since most CRI implementations use runc by default. As I understand the When running kubernetes with with eg. containerd as the runtime (via CRI), it uses the Can x-post this to #2366 tho, since it might be useful in that context. |
Yes, I think it is no way to set |
We are seeing the update cpu resources flow breaking in kubernetes as mentioned in this comment with runc 1.0.0-rc93. Should this issue be reopened? |
@kolyshkin @AkihiroSuda can we discuss approaches to fix this, so that this will not be an issue for kubernetes? |
If CRI is using But if CRI implementations are calling something other than |
We're working on a 1.0.0 release at the moment, it was going to be released last week but there's a regression under Docker's CI (we've fixed the issue though -- see #3009). I would expect a new release in a week or so. |
The Kubelet uses libcontainer/cgroups to setup cgroups. It would be nice to have a way to skip setting the devices cgroup at all.
The text was updated successfully, but these errors were encountered: