Kubernetes lets u create, update, delete containers. It is a container orchestration engine ( orchestration here refers to starting/stopping containers.

Why Kubernetes ?

It is cloud native that means all cloud support a lot of K8s api

K8s Cluster

It is a fleet of servers that can talk to each other. Creating a K8s cluster is equivalent to starting bunch of machines that’s running K8s code having each other’s address.

image.png

Deployment in K8s

image.png

Nodes

Each machine that are part of K8s Cluster are referred as node.

Master Node vs Worker Node

Master Node Architecture

image.png

Worker Node Architecture

Its constantly checking on master node. Is there a new job for me ? Am I supposed to start/stop something new ?

image.png

Pods

Whenever u want to start a container u are actually starting a pod than can run multiple containers together.