Kubernetes: The Brain and the Brawn Behind Container Orchestration

Prajjwala Nandeesh
3 min readFeb 20, 2023

Kubernetes is an open-source container orchestration system that has become an essential tool for managing containerized workloads. It provides a platform for deploying, scaling, and managing containerized applications. The architecture of Kubernetes is designed to provide a flexible and scalable platform for managing containers. In this blog, we will discuss the architecture of Kubernetes and how it works.

Kubernetes Architecture Overview:

The architecture of Kubernetes can be divided into two main components: the control plane and the worker nodes. The control plane manages and coordinates the worker nodes, which are responsible for running the containerized workloads.

Control Plane:

The control plane is the brain of Kubernetes. It is responsible for managing the overall state of the system, including the deployment, scaling, and monitoring of containerized applications. The control plane consists of several components, including:

API Server: The API server provides the Kubernetes API, which is used by users and other components to interact with the control plane. It serves as the front-end to the control plane.

etcd: etcd is a distributed key-value store used by Kubernetes to store all of its state information, including configurations, cluster state, and other important information.

Controller Manager: The controller manager is responsible for monitoring the state of the cluster and ensuring that the desired state is maintained. It includes several controllers that manage different aspects of the system, including the replication controller, endpoint controller, and service account controller.

Scheduler: The scheduler is responsible for placing containers on the worker nodes based on resource availability and other constraints.

Worker Nodes:

The worker nodes are responsible for running the containerized workloads. They are the nodes where the containers are deployed and run. Each worker node runs a container runtime, such as Docker or rkt, which is responsible for running the containers. The worker nodes also include several components, including:

Kubelet: The kubelet is the primary node agent responsible for managing the state of the node and ensuring that the containers are running as expected.

Container Runtime: The container runtime is responsible for running the containers on the node.

kube-proxy: kube-proxy is a network proxy and load balancer that is responsible for forwarding traffic to the appropriate containers.

Addons: Addons are optional components that can be installed on the worker nodes to provide additional functionality, such as logging and monitoring.

Kubernetes Architecture in Action:

When a user deploys an application to Kubernetes, the control plane receives the deployment request and stores the desired state in etcd. The controller manager then monitors the state of the cluster and ensures that the desired state is maintained. The scheduler then determines which worker node the container should run on and schedules it accordingly. The kubelet on the worker node then pulls the container image from the container registry and starts the container. The kube-proxy then ensures that traffic is forwarded to the appropriate container.

Conclusion:

The architecture of Kubernetes provides a flexible and scalable platform for managing containerized workloads. It provides a powerful set of tools for deploying, scaling, and managing applications. The control plane provides a centralized point for managing the state of the cluster, while the worker nodes are responsible for running the containerized workloads. By understanding the architecture of Kubernetes, you can better understand how it works and how to use it to deploy your own containerized applications.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Prajjwala Nandeesh
Prajjwala Nandeesh

No responses yet

Write a response