Setting up Kubernetes Clusters using Kubeadm Manual way in Ubuntu 16.04 Xenial

What is Kubeadm?

Kubeadm helps you bootstrap a minimum viable Kubernetes cluster that conforms to best practices. Kubeadm is a tool built to provide kubeadm init and kubeadm join as best-practice “fast paths” for creating Kubernetes clusters.


  • To Install a single master Kubernetes cluster
  • To Install a high availability master Kubernetes cluster
  • To Install a Pod network on the cluster so that your Pods can talk to each other.

kubeadm’s simplicity means it can serve a wide range of use cases:

  • New users can start with kubeadm to try Kubernetes out for the first time.
  • Users familiar with Kubernetes can spin up clusters with kubeadm and test their applications.
  • Larger projects can include kubeadm as a building block in a more complex system that can also include other installer tools.


  • One or more machines running a deb/rpm-compatible OS, for example Ubuntu or CentOS
  • 2 GB or more of RAM per machine. Any less leaves little room for your apps.
  • 2 CPUs or more on the master
  • Full network connectivity among all machines in the cluster. A public or private network is fine

As part of the installation, every node (master and minions) needs:

  • Docker
  • Kubelet
  • Kubeadm
  • Kubectl
  • CNI

Step 1 – Update Ubuntu and install apt-transport-https

Step 2 – Add Ubuntu apt repo for docker kubeadm kubectl kubelet kubernetes-cni

Step 3 – Install docker kubeadm kubectl kubelet kubernetes-cni

Step 4 – Finally, initialize a kubernetes clusters

Step 5 – Output

Step 6 – Setup Workstation in the Master node only. You can be regular user for it.

Step 7 – Verify Clustors

Step 8 – Install Kubernetes pod networking

Weave Net provides networking and network policy, will carry on working on both sides of a network partition, and does not require an external database. Kubernetes versions 1.6 and above:

Step 9 – Setup nodes [ In the node aka worker ]

Rajesh Kumar
Total Page Visits: 16 - Today Page Visits: 1