Skip to content

Instantly share code, notes, and snippets.

@initcron
Last active May 13, 2019 06:40
Show Gist options
  • Save initcron/43d39a939106c7588c8dc419f8ad7138 to your computer and use it in GitHub Desktop.
Save initcron/43d39a939106c7588c8dc419f8ad7138 to your computer and use it in GitHub Desktop.

Error

Linux kube-01 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

root@kube-01:/home/vagrant# kubeadm init --apiserver-advertise-address 192.168.56.101 --pod-network-cidr=192.168.0.0/16

[init] Using Kubernetes version: v1.13.4

[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 fix it .


[log out of the VM. assuming you are a root, you would have to exit twice]
exit 

exit 

From the path where Vagrantfile is, run the following,

vagrant reload kube-01 

vagrant ssh kube-01 

sudo su 

.... 

kubeadm init ...... 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment