k8s集群初始化报错[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2

[root@localhost kubernetes]# kubeadm init  --kubernetes-version=v1.18.6 --apiserver-advertise-address=192.168.179.120 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.1.0.0/16^C
[root@localhost kubernetes]# 
[root@localhost kubernetes]# cd
[root@localhost ~]# ls
k8s-master.sh
[root@localhost ~]# kubeadm init  --kubernetes-version=v1.18.6 --apiserver-advertise-address=192.168.179.120 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.1.0.0/16
W0804 17:47:17.368738    2946 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.6
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[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

把cpu内核调高就可以了

你可能感兴趣的:(k8s集群初始化报错[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2)