Easy Understanding of Kubernetes Architecture with Real world Examples

Easy Understanding of Kubernetes Architecture with Real world Examples

Kubernetes, often abbreviated as K8s, is an open-source container orchestration platform designed to automate 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). Kubernetes enables organizations to build and deploy applications in a highly scalable, resilient, and portable manner, regardless of the underlying infrastructure.

Introduction to Kubernetes:

Imagine you're the conductor of a symphony orchestra, and Kubernetes is your baton. It orchestrates a harmonious performance of containers, each playing its part in the symphony of your application. Just as a conductor ensures that each musician plays at the right time and tempo, Kubernetes orchestrates the deployment, scaling, and management of containers across a cluster of machines, ensuring that your application runs smoothly and efficiently.

Kubernetes Architecture:

At the heart of Kubernetes is a distributed system architecture that consists of several key components working together to manage containers and their workloads. Here's a high-level overview:

Let's incorporate the cargo ships analogy to explain each term:

  1. Master Node: The master is analogous to the central port authority that oversees and manages the operations of the entire fleet of cargo ships. It controls the scheduling of cargo shipments, allocates resources, and coordinates the activities of worker nodes (cargo ships) to ensure efficient and timely delivery of goods.

Example: The central port authority serves as the master node, directing the activities of all cargo ships within its jurisdiction. It monitors ship movements, assigns berths for loading and unloading cargo, and maintains communication with ships and other port facilities.

It consists of several components:

Example of kubernates Archiecture


  • Kube-apiserver: Kube-apiserver functions as the central communication hub or control tower at the port authority, handling incoming and outgoing communications, coordinating activities between different departments and stakeholders, and providing a unified interface for accessing port services and information.

Example: The control tower or central communication hub (kube-apiserver) at the port authority manages communications between port facilities, cargo ships, and external stakeholders, providing a centralized interface for coordinating port activities.

  • ETCD: ETCD cluster serves as the central registry or database that stores configuration data, metadata, and state information for the Kubernetes cluster. It provides a reliable and distributed key-value store used by all components for coordination and synchronization.

Example: The central registry or database (ETCD cluster) at the port authority stores information about cargo manifests, ship schedules, and berth assignments, serving as a reference for coordinating port operations and maintaining consistency across the port.

  • Kube-scheduler: Kube-scheduler acts as the traffic controller at the port authority, determining which cargo ships (worker nodes) should handle specific tasks or cargo shipments based on factors such as ship capacity, cargo type, and scheduling priorities.

Example: The traffic controller at the port authority (kube-scheduler) assigns cargo ships (worker nodes) to load or unload specific types of cargo, taking into account ship availability, cargo volume, and port logistics.

  • Controller Manager: The controller manager acts as the operations manager or supervisor at the port authority, overseeing various aspects of port operations, including cargo handling, vessel traffic, and safety protocols. It uses controllers to monitor ship movements, detect delays, and take corrective actions as needed.

Example: The operations manager or supervisor (controller manager) monitors cargo handling, vessel traffic, and safety procedures at the port, using controllers to ensure efficient and safe operations.

2. Worker Nodes: Worker nodes are like individual cargo ships in a fleet. Each cargo ship (worker node) has its own set of resources (such as cargo capacity, crew, and fuel) and is capable of carrying out specific tasks. These ships execute the transportation of goods (containers) to and from ports under the guidance of the port authority (master node).

Kubernates Archiecture


Example: In a fleet of cargo ships, each ship serves as a worker node. These ships transport containers (cargo) between ports, following instructions from the port authority (master node) regarding loading, unloading, and navigation.

Each worker node consists of several components:

  • Kubelet: Kubelet can be likened to the captain or crew onboard each cargo ship (worker node). It is responsible for managing the containers (cargo) loaded onto the ship, ensuring they are properly handled, and reporting any issues or updates to the port authority (master).

Example: The captain and crew onboard each cargo ship (worker node) act as kubelet, overseeing the loading, unloading, and transportation of containers (cargo) and communicating with the port authority (master) regarding cargo status and ship operations.

  • Kube-proxy: Kube-proxy functions as the navigational assistant or pilot boat that guides cargo ships (worker nodes) through the port and facilitates communication between ships. It manages network routing, load balancing, and service discovery within the Kubernetes cluster.

Example: The navigational assistant or pilot boat (kube-proxy) assists cargo ships (worker nodes) in navigating congested waters and narrow channels, ensuring safe passage and facilitating communication between ships and port facilities.

  • Container Runtime Engine: The container runtime engine is like the engine room or propulsion system onboard each cargo ship. It is responsible for managing and executing containers (cargo) within the ship's cargo hold, ensuring they run efficiently and reliably during transportation.

Example: The engine room or propulsion system serves as the container runtime engine, managing the operation of containers (cargo) onboard each cargo ship (worker node) to ensure they are properly loaded, secured, and transported to their destination.

Conculsion:

In the maritime world of containerization, Kubernetes is the seasoned captain steering a fleet of cargo ships toward operational excellence. Its architecture resembles a well-organized port, where master nodes serve as the central command center orchestrating the activities, while worker nodes act as the reliable cargo ships executing the tasks.

Picture Kubernetes as the harbor master, with kube-apiserver as the communication hub, ETCD as the navigational charts storing critical information, kube-scheduler as the dispatcher assigning cargo to ships, and controller manager as the vigilant supervisor ensuring smooth operations.

Meanwhile, the worker nodes represent the sturdy cargo ships, guided by kubelet as their captain and kube-proxy as their trusty navigator. Together, they form a resilient fleet capable of efficiently transporting containers (workloads) across the vast sea of computing resources.

In this analogy, Kubernetes architecture mirrors the bustling ecosystem of a maritime port, where coordination, efficiency, and reliability are paramount. Just as a well-managed port ensures the smooth flow of goods, Kubernetes architecture enables seamless deployment, scaling, and management of containerized applications, navigating the complexities of modern computing with ease.


要查看或添加评论,请登录

Alice Sophiya Samuel的更多文章

  • Basic (Beginner) ways to make a budget Infra

    Basic (Beginner) ways to make a budget Infra

    When a client uses resources without limits, I suggested some AWS changes to optimize costs. Now, they're saving .

  • KUBERNETES - THE FUTURE OF LINUX

    KUBERNETES - THE FUTURE OF LINUX

    Kubernetes doesn’t replace Linux; it extends it by providing a layer of abstraction that allows organizations to scale…

  • OPENSHIFT DEPOLYMENTS

    OPENSHIFT DEPOLYMENTS

    What is OpenShift Deployment? An OpenShift Deployment is a resource object that provides declarative updates to…

  • Kubernetes Deployments with ARGO CD

    Kubernetes Deployments with ARGO CD

    Argo CD is an open-source continuous delivery tool for Kubernetes that helps you automate the deployment of your…

  • Forecasting Infrastructure Trends: Cloud vs. Bare Metal

    Forecasting Infrastructure Trends: Cloud vs. Bare Metal

    Navigating between the tailored control of private data centers (bare metal) and the expansive versatility of cloud…

  • Kubernates - Case Study on Industries

    Kubernates - Case Study on Industries

    In today's rapidly evolving digital landscape, businesses are constantly challenged to adapt and innovate. As the…

  • AWS FARGATE

    AWS FARGATE

    AWS Fargate: Serverless compute for containers AWS Fargate is a serverless compute engine for containers that enables…

  • Apache Kafka to the Kubernetes Era!

    Apache Kafka to the Kubernetes Era!

    Here, it get back to back updates with the red hat that seems the most rapid speed of new era started with kubernetes .…

  • KERBEROS

    KERBEROS

    It's always used to say that old is gold , here the tech field moves to the faster miles , It felt to be embracing when…

  • WHERE DOES THE IP HAVE COME FROM?

    WHERE DOES THE IP HAVE COME FROM?

    Our daily lives involved IP addresses. In the modern era, every smart device on the network is identifiable by its IP…

社区洞察

其他会员也浏览了