kubeadm init fails with "the number of available CPUs 1 is less than the required 2" on an Azure B1s VM — how I fixed it

작성자

카테고리:

← 피드로
DEV Community · mikailh · 2026-07-05 개발(SW)

mikailh

While setting up a self-managed Kubernetes cluster on Azure VMs, I hit this error when running sudo kubeadm init on a Standard_B1s VM (1 vCPU / 1 GB RAM):

[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2

After checking Stack Overflow and the official Kubernetes documentation (“Before you begin”), I confirmed that kubeadm requires at least 2 CPUs to install the control plane.

The fix: I stopped the VM and resized it from Standard_B1s to Standard_B2s (2 vCPU / 4 GB RAM) from the Azure portal, then ran kubeadm init again — the preflight checks passed and the control plane initialized successfully.

Posting this in case it helps someone hitting the same issue on a low-tier cloud VM. Thanks to the community for the answers that pointed me in the right direction!

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다