Wise people learn when they can; fools learn when they must - Arthur Wellesley

Thursday, 9 February 2023

KUBERNETES - 3 (Installation)

 

                           KUBERNETES - 3 (Installation)

What we will learn,

Kubernetes cluster creation,

Steps for Installation,

 

1.  Swap should be disabled

2.  Disable selinux

3.  Firewalld should be stopped, (if not then must be rules defined to allow k8s)

4.  Entry of all master & worker in /etc/hosts

5.  Mac id and product_uuid should be unique

6.  Enable Internet

7.  Yum update

8.  Install docker-ce on all nodes [docker engine/docker daemon, responsible for all the container management docker build, docker network, docker volume and docker inspect. Requires docker-ce-cli.]

9.  Install docker-ce-cli on all nodes [command line interface for docker engine]

10. Install containerd.io on all nodes [daemon containerd to interface with the OS API, It uses kernel features to provide a runtime environment for containers. Containerd is the container runtime software which is responsible for running containers.

11. Install Kubelet on all nodes

12. Install Kubeadm on all nodes

13. Install Kubectl on all nodes

14. Initialize kubeadm on Master node only

15. Install/Deploy a Container Network Interface (CNI) based Pod network on Master Node only (our case Calico) [Required for Pods communication with each other. Cluster DNS (CoreDNS) will not start up before a network is installed. A CNI plugin is required to implement the Kubernetes network model.

16. Join Worker with Master

17. Validate the setup