Day 30 Task: Kubernetes Architecture

Hello Readersđ©âđ»đ©âđ»đ©âđ»
its my #day30 of #90daysofdevops
â What is Kubernetes?
â What are the benefits of using k8s?
â Explain the architecture of Kubernetes?
â What is Control Plane?
â Write the difference between kubectl and kubelets.
â Explain the role of the API server.
What is Kubernetes?
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. It was originally developed by Google and is now maintained by the Cloud Native Computing Foundation (CNCF).
What is Container Orchestration?
Container orchestration refers to the management and coordination of containers in a distributed computing environment. It involves automating the deployment, scaling, and management of containerized applications across a cluster of machines.
Benefits of using Kubernetes
âąScalability
âą High Availability
âąFault Tolerance and Self-healing
âąLoad Balancing
Architecture of Kubernetes

Let's understand the Kubernetes architecture
The Kubernetes architecture consists of two nodes
âą Master Node-The master node is responsible for managing all the resources.
âą Worker Node-The worker node is the node where all the containers are running.
Components in Master Node
âąetcd- It is a database that contains all the information regarding pods, nodes, config, secret, binding, etc.
âąAPI server- Acts as the primary control plane component that exposes the Kubernetes API. It handles requests from various clients and performs authentication, authorization, and validation.
âąetcd: Distributed key-value store used as the backend for storing cluster data, such as configuration, state, and metadata.
âąController Manager: Runs various controllers responsible for maintaining the desired state of the cluster.
âąScheduler: Assigns pods to available worker nodes based on resource requirements, node constraints, and other factors.
Worker Nodes:
Kubelet: The primary agent running on each worker node. It communicates with the API server and manages the containers running on the node, ensuring they are in the desired state.
Container Runtime: The software responsible for running containers, such as Docker or containerd. It interacts with the kubelet to start, stop, and manage containers.
Kube-proxy: Manages network connectivity and implements services and load balancing within the cluster
Control plane
The control plane in Kubernetes refers to the collection of components responsible for managing and controlling the cluster's overall behavior. It acts as the brain of the Kubernetes system and handles tasks such as accepting and processing API requests, making decisions about the desired state of the cluster, and orchestrating the actions required to achieve that state.
Write the difference between kubectl and kubelets.
kubectl is the command-line tool used for cluster management and control, while kubelet is the agent that runs on each worker node, responsible for managing containers and executing instructions received from the control plane.
Explain the role of the API server.
Kubernetes control plane and plays a central role in managing and controlling the cluster.
âąExposing the Kubernetes API: The API server serves as the primary endpoint for interacting with the Kubernetes cluster.
âąAuthentication and Authorization: The API server handles authentication and authorization for incoming API requests.
âąValidation and Admission Control: The API server performs validation of API requests to ensure they adhere to defined policies and constraints.

I appreciate you taking the time to read my blog, and I hope you found it informative. If you found the content useful, please consider giving it a like, sharing it with others, and following me for more similar posts in the future. Thank you for your support!
Linkedin Profile-https://linkedin.com/in/shreyakhangan
Comments
Join the discussionNo comments yet. Be the first to comment.



