Skip to main content

Day 30 Task: Kubernetes Architecture

Published 3 min readMarkdown
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

No comments yet. Be the first to comment.

More from this blog