Skip to content

Kubeadm setup in ubuntu machines

Deekshith SN edited this page Apr 7, 2021 · 4 revisions

kubernetes installation on ubuntu 16.04 ( kubeadm - single master multi nodes )

Make sure docker installed in master and nodes, make sure master has 2 cpu's

Execute below commands in both master and node

for more details https://kubernetes.io/docs/setup/independent/install-kubeadm/

Execute below commands in master

after executing this command you will get node's joining command, copy and paste it somewhere

Execute join command in node, which may look like as mentioned below

   kubeadm join 10.128.0.8:6443 --token q915fe.do2ty6a8ow6qjixt \
   --discovery-token-ca-cert-hash sha256:acd137106e6b763d1ca6b5a4f7c1b1538c2ee8af81e47f9ea3f385c66cd710b3 

Then to verify use below commands

  • kubectl get nodes
  • kubectl get pods
  • Kubectl get service