@@ -59,22 +59,15 @@ func (s *K0sSysinfoSpec) addKernelConfigs(linux *linux.LinuxProbes) {
59
59
// which is the first kernel release that supports all of those configs.
60
60
61
61
if s .WorkerRoleEnabled {
62
- cgroups := linux .RequireKernelConfig ("CGROUPS" , "Control Group support" )
63
- cgroups .RequireKernelConfig ("CGROUP_FREEZER" , "Freezer cgroup subsystem" )
64
- cgroups .RequireKernelConfig ("CGROUP_PIDS" , "PIDs cgroup subsystem" )
65
- cgroups .RequireKernelConfig ("CGROUP_DEVICE" , "Device controller for cgroups" )
66
- cgroups .RequireKernelConfig ("CPUSETS" , "Cpuset support" )
67
- cgroups .RequireKernelConfig ("CGROUP_CPUACCT" , "Simple CPU accounting cgroup subsystem" )
68
- cgroups .RequireKernelConfig ("MEMCG" , "Memory Resource Controller for Control Groups" )
69
- cgroups .AssertKernelConfig ("CGROUP_HUGETLB" , "HugeTLB Resource Controller for Control Groups" )
70
- cgSched := cgroups .RequireKernelConfig ("CGROUP_SCHED" , "Group CPU scheduler" )
71
62
// https://github.com/kubernetes/kubeadm/issues/2335#issuecomment-717996215
72
63
// > For reference https://github.com/torvalds/linux/blob/v4.3/kernel/sched/core.c#L8511-L8533
73
64
// >
74
65
// > - CONFIG_FAIR_GROUP_SCHED should be set as required, since there is
75
66
// > currently no way to disable using it in Kubernetes
76
67
// > - CONFIG_CFS_BANDWIDTH should be set as optional, as long as
77
68
// > --cpu-cfs-quota=false actually works when CONFIG_CFS_BANDWIDTH=n
69
+ cgroups := linux .RequireKernelConfig ("CGROUPS" , "Control Group support" )
70
+ cgSched := cgroups .RequireKernelConfig ("CGROUP_SCHED" , "Group CPU scheduler" )
78
71
fairGroupSched := cgSched .RequireKernelConfig ("FAIR_GROUP_SCHED" , "Group scheduling for SCHED_OTHER" )
79
72
fairGroupSched .AssertKernelConfig ("CFS_BANDWIDTH" , "CPU bandwidth provisioning for FAIR_GROUP_SCHED" )
80
73
cgroups .AssertKernelConfig ("BLK_CGROUP" , "Block IO controller" )
0 commit comments