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, 2019 in Kubernetes by Pam
7,563 views
I am facing the same issue... How to solve this??

Hi,

Kubernetes Master/Worker node needs two CPUs. But the AMI you used has only one CPU. So you need to use another AMI for your EC2 instance that has more than one CPU.

I am trying to configure the same in Virtual Box, not in AWS.

Hi,

Then you need to set CPU in your VM. Open your VM settings. You can find one option system. Inside this, you need to increase your processor from 1 to 2 at least.

Hi
  Super ,thank you so much

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, 2019 by Macy

Related Questions In Kubernetes

+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17, 2019 in Others by anonymous
15,441 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,350 points

reshown Apr 12, 2019 by Kalgi 7,071 views
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP