-
Notifications
You must be signed in to change notification settings - Fork 706
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
Kubeadm Pre-flight check fails for cgroupsv2 (CGROUPS_CPUSET: missing) #2571
Comments
Hi, kubeadm uses the kubernetes/system-validators library to perform this
validation.
It opens /sys/fs/cgroup and looks for required and optional specification
https://github.com/kubernetes/system-validators/blob/master/validators/types_unix.go
Functionality like cpusets is required on the os level, and the kubelet or
container runtime will prorobably fail without them. It is worth
understanding why it is disabled in your case - e.g. try contacting the distro maintainers or see how you can enable it.
Alternatively use a different distro.
/kind support
|
It worked with Ubuntu 21.04, with Cgroupsv2 enabled. |
Hi Guys, i'm facing exactly similar issue on debian NUC.! but in my case i can't switch to any other other distro.! how can i solve it in debian 4.19 or do i need any kernal update. all are passing except Cgroup.cpusets |
Cpuset is a required cgroup by the kubelet. You can try ignoring the error
on the side of kubeadm but you might see unexpected errors in the kubelet.
You can enable the cpuset config option and build a new kernel, but also
you can ask the distro maintainers why it is not enabled.
…On Mar 22, 2022 16:13, "surya kiran suravarapu" ***@***.***> wrote:
Hi Guys,
i'm facing exactly similar issue on debian NUC.! but in my case i can't
switch to any other other distro.! how can i solve it in debian 4.19 or do
i need any kernal update. all are passing except Cgroup.cpusets
—
Reply to this email directly, view it on GitHub
<#2571 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRATEVAS7RPGKL6SPPSA3VBHIPRANCNFSM5ELVC3GA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i'm getting error while joining the node into cluster. on the otherhand i can see cgroup is enabled . i'm clueless |
Try getting help on the k8s support channels. More info in the readme in
this repo.
Do you have proof that cpuset is enabled? If yes and if you find a bug in
our validation
https://github.com/kubernetes/system-validators/blob/master/validators/cgroup_validator_linux.go
open a new issue in that repository please and provide full details.
|
Not sure if this is an OS thing or Kubeadm related.
Versions
kubeadm version (use
kubeadm version
):Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2",
uname -a
):What happened?
Tried to do Kubeadm init
config.yaml
System is running CGroupsv2
What you expected to happen?
How to reproduce it (as minimally and precisely as possible)?
Anything else we need to know?
The text was updated successfully, but these errors were encountered: