[root@k8s images]# sudo kubeadm init --apiserver-advertise-address 172.16.34.125 --apiserver-bind-port 6443 --kubernetes-version 1.22.3 --pod-network-cidr 10.244.0.0/16 --service-cidr 10.1.0.0/16
[init] Using Kubernetes version: v1.22.3
[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
[root@k8s images]#
修改虚拟机cpu核数、