How To Install Kubernetes On Ubuntu Using Kubeadm | Setup Kubernetes Cluster Step By Step | Tutorial

preview_player
Показать описание
In this video we will create a Kubernetes cluster on Ubuntu using kubeadm. This tutorial is aimed at the audience who are new to DevOps and want to setup a Kubernetes cluster.

Some other prerequisites include:
1 - Basic understanding of Docker & Kubernetes.
2 - One or more machines running a deb/rpm-compatible Linux OS; for example: Ubuntu or CentOS.
3 - 2 GiB or more of RAM per machine--any less leaves little room for your apps.
4 - At least 2 CPUs on the machine that you use as a control-plane node.
5 - Full network connectivity among all machines in the cluster. You can use either a public or a private network.

Before watching this video we would recommend our viewers to go through this link to better understand Kubernetes:

Below are the commands that we have used to setup a cluster:
On Master and Slave Nodes:
1 - sudo su
2 - swapoff -a
3 - apt-get update && apt-get install -y apt-transport-https curl
EOF
6 - apt-get update
7 - apt-get install -y kubelet kubeadm kubectl
8 - apt-mark hold kubelet kubeadm kubectl
10 - systemctl start docker
11 - systemctl status docker
12 - apt-get update && apt-get upgrade

On Master Node:
13 - apt-get install net-tools
14 - ifconfig
#Kubernetes Cluster Initialization
15 - kubeadm init --apiserver-advertise-address (IP-Address) --pod-network-cidr=192.168.0.0/16 --kubernetes-version (Version-Number)
16 - exit
#Cluster permissions for a normal user
17 - mkdir -p $HOME/.kube
19 - sudo chown $(id -u):$(id -g) $HOME/.kube/config
#Kubeadm Installation of Pod Network - Calico

On Worker Nodes:
21 - kubeadm join (Master-IP):6443 --token (Token) \
--discovery-token-ca-cert-hash sha256:(Token-Hash)

Reference:
Рекомендации по теме
Комментарии
Автор

I managed to get mine working from these commands, I had to change a few things, or use the commands which 'kubeadm init' returned, but I got it working. Now to test everything out. Thanks for the head start...

KibbleWhite
Автор

Awesome video ! Tried setting up Kubernetes for the first time and it went so smoothly ...Thank you👍😁

siddhithakkar
Автор

Hi, Do have the steps to setup kubernetes with 1 master and 2 worker node ?

visva
Автор

so if im using virtualbox I basically need to set up 2 different vms right?

adennis
Автор

where do i get the link which you are used

fabrics
Автор

My router ip is 192.168 can't install this calico

dconwheels