Day 5/40
What is Kubernetes
Video Link
@piyushsachdeva
Git Repository
My Git Repo
We're going to look at Kubernetes architecture in depth.
-
Control Planecomponents. - Why it's needed.
- How do they work?
-
Nodeis nothing but a virtual machine. Control Planeis a virtual machine that hosts many administrative components, like board in companies!Actual works are done by
Worker Node.PODis the smallest deployable unit that can be managed byKuberneteswhich can include one or multiple containers.API Serveracts as the central management point of the entireKubernetescluster.Schedularis that it automatically decides how to distribute workloads across a cluster of servers.Controller Managerwhich handles all interactions withnode controller,namespace controller,deployment controller,replication controllerand so on, and make sure everything is up & running and monitored.etcdis a key-value datastore which stores the data required to manage clusters. Importantly.kubeletfunctions as an agent within nodes and is responsible for the running of pod cycles within each node.kube-proxycontrols traffic routing and network connectivity for services within the cluster.kubectlis a command-line tool which command communicates with thekube-apiserverand sends orders to thecontrol planenode.
Work Flow
-
kubectltoapi-server: Please create thepod -
api-servervalidate and authenticate the user withetcdand notify thecontroller-manager. -
controller-managertells theapi-serverit's ok to have aPOD -
api-serverwrite the request inetcddatabase. -
etcdsays toapi-serveryes it's done. -
api-serversays toschedulerto watch the new request. -
schedularmonitors and find out there's apodcreation request. -
schedularsays toapi-serverthat I found a very special node for deploying the newpod. -
api-serverinteracts with thekubeletof the selectionnode. -
kubeletasksdocker(or other alternative) to build thecontainerwith requetedimage. -
dockersays to'kubelet, hey deploy what I built. -
kubeletrun thepodand sends back the detail toapi-serverthat thepodis deployed. -
api-serverupdate the related record inetcddatabase. -
api-serversends the detail tokubectland theuser.


Top comments (0)