mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
kubelet: skip setting the devices cgroup
use the new libcontainer feature of skipping setting the devices cgroup. This is necessary on cgroup v2 to avoid leaking a eBPF program every time the cgroup is re-configured. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -384,6 +384,7 @@ func createManager(containerName string) (cgroups.Manager, error) {
|
||||
Major: configs.Wildcard,
|
||||
},
|
||||
},
|
||||
SkipDevices: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user