[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2

导读:本篇文章讲解 [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com

  出现上述错误的原因:因为物理机或者虚拟机不满足Kubernetes的基础配置造成的。而Kubernetes对GPU要求至少是2核,2G内存。

W0123 08:22:23.322562   12102 validation.go:28] Cannot validate kubelet config - no validator is available
W0123 08:22:23.322976   12102 validation.go:28] Cannot validate kube-proxy config - no validator is available
[init] Using Kubernetes version: v1.16.0
[preflight] Running pre-flight checks
	[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
	[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.17.4" Control plane version: "1.16.0"
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

这种错误一般都出现在虚拟机上,因为VM默认了一核,可以通过配置,调整成2核,重启系统即可,如下所示:
在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/68840.html

(0)
小半的头像小半

相关推荐

极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!