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

  出現上述錯誤的原因:因爲物理機或者虛擬機不滿足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核,重啓系統即可,如下所示:
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章