Part - 1: Kubernetes Architecture and Components

Ashraf BhuiyaAshraf Bhuiya
4 min read

๐Ÿ“ Introduction:

Hello everyone. In this series of blogs, we will discuss Kubernetes. This is the first part of the Kubernetes series. In the first part, we will discuss Kubernetes Architecture and Components. We will divide the discussion into seven parts.

Kubernetes is an open-source platform that is widely used for container orchestration. It is designed to automate the deployment, scaling, and management of containerized applications. Kubernetes provides a rich set of features that help manage the complexity of deploying and managing containerized applications at scale. It can be used to manage and run applications in a variety of environments, including public, private, and hybrid clouds.

๐Ÿ“ Kubernetes Architecture:

The Kubernetes architecture consists of two main components: Master Node Components and Worker Node Components.

๐Ÿ“ Master Node Components:

Master components are the control plane components of Kubernetes that manage the Kubernetes cluster. The master components include:

๐Ÿ”น Kubernetes API Server:

The Kubernetes API Server is responsible for exposing the Kubernetes API, which clients use to interact with the Kubernetes cluster. It serves as the primary management point for the cluster, handling the validation and processing of API requests.

๐Ÿ”น etcd:

Etcd is a distributed key-value store utilized for storing the configuration data of the Kubernetes cluster. It serves as the storage system for the cluster's state, encompassing the state of all objects such as pods, services, deployments, and more. Additionally, it is designed for fast and efficient operations, enabling quick access and retrieval of the stored configuration data.

๐Ÿ”น Kube-Scheduler:

The Kube-Scheduler plays a crucial role in the Kubernetes cluster by handling the scheduling of pods onto the available nodes. It leverages information regarding the nodes' available resources and the resource requirements of the pods to make informed decisions about the optimal node for scheduling. By analyzing these factors, the Kube-Scheduler ensures efficient utilization of resources and effective distribution of workloads across the cluster.

๐Ÿ”น Kube-Controller Manager:

The Kube-Controller Manager is responsible for running controllers that are responsible for maintaining the desired state of the Kubernetes cluster. The controllers include the node controller, the replication controller, and the endpoint controller.

๐Ÿ“ Worker Node Components:

Node components are the worker components of Kubernetes that run on each node in the Kubernetes cluster. The node components include:

๐Ÿ”น Nodes:

Nodes are the worker machines that run the containers. They are managed by the Kubernetes master components.

๐Ÿ”น Pods:

Pods are the smallest deployable units in the Kubernetes cluster. They contain one or more containers and are scheduled on nodes.

๐Ÿ”น Container Runtime Engine:

The Container Runtime Engine is responsible for running the containers on the node. Kubernetes supports several container runtimes, including Docker, CRI-O, and containerd.

๐Ÿ”น kubelet:

Kubelet is one of the main components of Kubernetes responsible for managing individual nodes and their containers. It is essentially an agent that runs on each node in the Kubernetes cluster and communicates with the API server to ensure that the containers running on the node are healthy and running as expected.

The kubelet performs several functions, including:

  1. Fetching container manifests from the Kubernetes API server.

  2. Ensuring that the containers described in the manifest are running and healthy.

  3. Reporting the status of the containers back to the API server.

  4. Mounting and unmounting volumes as necessary.

  5. Executing container health checks.

๐Ÿ”น kube-proxy

The kube-proxy component is responsible for managing the network proxy between the Kubernetes services and the pods that are running on the worker nodes. The kube-proxy uses various networking modes to ensure that the communication between the pods and services is efficient and reliable

๐Ÿ”น Container Networking

The container networking component in Kubernetes takes on the critical role of enabling communication between containers running on worker nodes, as well as facilitating connectivity with external networks. Kubernetes offers various plugins for container networking, with some popular options being Flannel, Calico, and Weave.

These plugins handle tasks such as IP address management, routing, and network isolation to establish seamless connectivity between containers. They ensure that containers within the cluster can communicate with one another efficiently and securely. Furthermore, the container networking component enables containers to access external networks, allowing interaction with resources outside the Kubernetes cluster.

By leveraging plugins like Flannel, Calico, or Weave, Kubernetes empowers users to select a container networking solution that best suits their specific requirements, enhancing the overall networking capabilities of the cluster.

๐Ÿ“ Conclusion:

In summary, Kubernetes is an open-source container orchestration platform that has gained significant popularity in modern software development. It simplifies the deployment, management, and scaling of containerized applications across multiple clusters. With its highly scalable and fault-tolerant architecture, Kubernetes is capable of handling complex workloads efficiently.

By utilizing Kubernetes, developers can concentrate on building and deploying their applications, as the platform handles the underlying infrastructure. It's flexible architecture and extensive feature set make Kubernetes an ideal choice for developing modern, cloud-native applications.

0
Subscribe to my newsletter

Read articles from Ashraf Bhuiya directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ashraf Bhuiya
Ashraf Bhuiya