filmov
tv
How To Install Kubernetes On Ubuntu Using Kubeadm | Setup Kubernetes Cluster Step By Step | Tutorial
Показать описание
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:
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:
Комментарии