Day - 1 : Kubernetes

Day - 1 : Kubernetes

Kubernetes is generally known as container orchestration tool used to deploy,manage and maintain various container.

Cluster Architecture | Kubernetes

A Kubernetes (K8s) cluster is a grouping of nodes that run containerized apps in an efficient, automated, distributed, and scalable manner.

Kubernetes cluster consist of two parts:

Master Node(Control Plane)

It consists of five parts:

API Server

-> All the UI(user Interface),API,CLI(Character Line Interface) interact with this layer.

Scheduler

-> Scheduler manages the pods placement

Controller Manager

-> Controller Manager monitor/track all the activity perform in the K8s cluster, if any things goes wrong it again restart that node

-> Check if desired state == actual state. If not then try to do so.

etcd

->It helps in backup and storage of working node if any data get lost, data get stored in key-value format

->It store API object, configMaps, secrets

Working Nodes

consists of Pods:

Pods

Pods are the smallest unit of Kubernetes .i.e. K8s works with pods. It has unique IP address. Wrapper of container .i.e. Pods contains container inside it. Each pod is its own self-contained server.

Pods get died frequently,pods get recreated through service. Pods gets new IP address on recreation

Service

Service is attach to a particular node and give permanent IP address to it.

Also, used as load balancer.

Kubernetes Configuration

Kubernetes Only accept YAML/JASON file

Deployment:

Deployment = A template for creating pod