kubelet: do not configure the device cgroup

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-04-09 12:18:40 +02:00
parent 43c56eb403
commit 26d94ad628
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

View File

@ -500,6 +500,8 @@ func setResourcesV2(cgroupConfig *libcontainerconfigs.Cgroup) error {
if err := propagateControllers(cgroupConfig.Path); err != nil {
return err
}
allowAll := true
cgroupConfig.Resources.AllowAllDevices = &allowAll
manager, err := cgroupfs2.NewManager(cgroupConfig, cgroupConfig.Path, false)
if err != nil {