Error "the number of available CPUs 1 is less than the required 2" when creating kubernetes cluster on ec2

0 votes

I am trying to create kubernets cluster on an ubuntu 18.04 ec2 instance. I get the following error:

 sudo kubeadm init --pod-network-cidr=192.168.0.0/16 --apiserver-advertise-address=192.168.0.103
[init] Using Kubernetes version: v1.15.2
[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/
        [WARNING SystemVerification]: this Docker version is not on the list of validated versions: 19.03.1. Latest validated version: 18.09
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=...`
Aug 6 in Kubernetes by Pam
60 views

1 answer to this question.

0 votes

The new version of Kubernetes requires you to have a minimum of 2 CPUs. Make sure of that. I had faced a similar issue. 

Have a look at this for understanding how to resize the instance.

answered Aug 6 by Macy

Related Questions In Kubernetes

0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
1,568 views
+3 votes
1 answer
0 votes
2 answers