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:
Giuseppe Scrivano
2020-07-07 08:56:15 +02:00
parent c655a5b636
commit 0d2a493a8f
3 changed files with 6 additions and 2 deletions

View File

@@ -384,6 +384,7 @@ func createManager(containerName string) (cgroups.Manager, error) {
Major: configs.Wildcard,
},
},
SkipDevices: true,
},
}