How to install Kubernetes on Ubuntu 20.04 Focal Fossa Linux -

Kubernetes is leading software in container orchestration. Kubernetes works by managing clusters, which is simply a set of hosts meant for running containerized applications. In order to have a Kubernetes cluster, you need a minimum of two nodes - a master node and a worker node. Of course, you can expand the cluster by adding as many worker nodes as you need.

This is a companion discussion topic for the original entry at

I ran through your guide one and things failed at the flannel section.

I found this: coreos dot com /flannel/docs/latest/kubernetes.html <- wont let me post link.

I had to reinstall ubuntu and run kubeadm with the cidr flag as per flannel’s instructions.

sudo kubeadm init --pod-network-cidr=

Then everything worked perfect!

@Korbin If the doc could be updated with the new command sudo kubeadm init --pod-network-cidr=, it would be helpful for others who stumble upon this doc. I am new to k8 and I was stuck at this step for a long time.

Thanks for this blog :slightly_smiling_face:

The above comments about flannel are very helpful. To avoid reinstalling ubuntu, you can do:
sudo kubeadm reset
sudo rm -rf /etc/cni/net.d
Then retry ‘sudo kubeadm init’ with the extra options.