kubernetes cluster cant intilized

12/19/2018

I'm creating kubernetes cluster on fedora 26, but I can't initialize cluster on kubernetes.

Here I'm attaching images and error for your references, guide me how to solve the issue..

Environment:

  • Docker Version
  • Client Version: 1.13.1
  • API version: 1.26

Kubeadm version:

Kubeadm version

Error Image:

Error Image

Cluster Error:

Cluster Error

-- ajithk
docker
kubeadm
kubectl
kubernetes
kubernetes-cluster

2 Answers

2/29/2020

You can run kubeadm init with only one CPU added: --ignore-preflight-errors=NumCPU. So your new code:

kubeadm init --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=NumCPU

-- dose
Source: StackOverflow

12/19/2018

The issue with your setup is that the minimum required CPU to install Kubernetes with kubeadm is 2 and you have only 1 CPU on your VM.

If you want to setup kubernetes on single machine, please have a look at microK8s. Following is the step by step instruction to install it on Fedora:

https://itnext.io/a-local-kubernetes-with-microk8s-33ee31d1eed9

-- Prafull Ladha
Source: StackOverflow