Kubernetes (K8s) is an open-source container orchestration platform that automates the deployment, scaling and management of containerized applications. Originally developed by Google, it is now managed by the Cloud Native Computing Foundation (CNCF).
Kubernetes simplifies managing large-scale applications, making it the go-to choice for DevOps, microservices, and cloud-native computing.
Key Terminologies
Think of Kubernetes as a well-organized company where different teams and systems work together to run applications efficiently. Here’s how the key terms fit into this system:
1. Pod – The Basic Work Unit
A Pod is like a small team that works together on a task. It holds one or more containers (applications) that share resources.
Example: A web server (like Nginx) and a logging tool inside the same Pod, working as a team.
2. Node – The Workstation
A Node is a computer (physical or virtual) that runs these Pods. There are two types:
- Control Plane (Master Node) – The manager that organizes and schedules work.
- Worker Node – The employees (machines) that actually run the applications inside Pods.
Example: If Kubernetes is a company, the Control Plane is the CEO, and Worker Nodes are employees doing the real work.
3. Cluster – The Entire Organization
A Kubernetes Cluster is the whole company that brings everything together – Nodes, Pods, networking, storage, and security.
Example: Just like a company has multiple departments working in sync, a cluster ensures different applications run smoothly together.
4. Deployment – The Automated Workforce Manager
A Deployment ensures that a certain number of Pods are always running. It also automates updates and scaling.
Example: If a store always needs 5 cashiers, a Deployment makes sure that even if one quits, another is immediately hired.
5. ReplicaSet – The Backup System
A ReplicaSet ensures that the right number of identical Pods are running.
Example: If a website needs 3 servers running at all times, ReplicaSet ensures that if one crashes, another one starts immediately.
6. Service – The Receptionist
A Service ensures that users can always connect to the right Pod, even if the Pod restarts or moves to another Node.
Example: Instead of calling a specific employee (Pod), customers call a support number (Service), which connects them to an available agent.
7. Ingress – The Traffic Controller
Ingress manages how users access services from the outside world, directing web traffic properly.
Example: It’s like a front desk receptionist who directs visitors to the right department inside the company.
8. ConfigMap – The Settings File
A ConfigMap stores configuration settings separately from the application, so changes can be made without modifying the actual code.
Example: Imagine a thermostat where you can adjust the temperature settings without replacing the entire device.
9. Secret – The Secure Vault
A Secret is used to store sensitive data, such as passwords, API keys, and certificates, securely.
Example: Instead of writing down Wi-Fi passwords on a sticky note, they are stored in a locked safe (Secret).
10. Persistent Volume (PV) – The Storage Room
A Persistent Volume is long-term storage that remains even if the application restarts.
Example: A company’s document archive where files are stored safely, even if computers are turned off.
11. Namespace – Different Departments in the Company
A Namespace helps separate different projects or teams inside the same Kubernetes Cluster.
Example: A company has HR, Finance, and IT departments, all working under the same organization but isolated from each other.
12. Kubelet – The Supervisor on the Floor
A Kubelet runs on each Worker Node and ensures Pods are running as expected.
Example: A factory supervisor who checks if workers (Pods) are doing their tasks properly.
13. Kube-proxy – The Internal Communication System
Kube-proxy manages networking inside the cluster, ensuring different Pods can communicate.
Example: Like an internal office phone system, allowing different departments (Pods) to talk to each other smoothly.
Benefits of using Kubernetes
1. Automated Deployment and Management
- If you are using Kubernetes for deploying the application then no need for manual intervention kubernetes will take care of everything like automating the deployment, scaling, and containerizing the application.
- Kubernetes will reduce the errors that can be made by humans which makes the deployment more effective.
2. Scalability
- You can scale the application containers depending on the incoming traffic Kubernetes offers Horizontal pod scaling the pods will be scaled automatically depending on the load.
3. High Availability
- You can achieve high availability for your application with the help of Kubernetes and also it will reduce the latency issues for the end users.
4. Cost-Effectiveness
- If there is unnecessary use of infrastructure the cost will also increase kubernetes will help you to reduce resource utilization and control the overprovisioning of infrastructure.
5. Improved Developer Productivity
- Developer can concentrate more on the developing part kubernetes will reduce the efforts of deploying the application.
Deploying and Managing Containerized Applications with Kubernetes
Follow the steps mentioned below to deploy the application in the form of containers.
Step 1: Install Kubernetes and setup kubernetes cluster there should be minimum at least one master node and two worker nodes you can set up the kubernetes cluster in any of the cloud which are providing the kubernetes as an service.
Step 2: Know create deployment manifestfile you can create this manifests in the manifest you can specify the exact number of pods are required and what the container image and what types of resources are required after completion of writing the manifestfile apply the file using kubectl command.
Step 3: After creating the pods know you need to expose the service to the outside for that you need to write one more manifestfile which contains service type (e.g., LoadBalancer or ClusterIP), ports, and selectors.
Use Cases of Kubernetes in Real-World Scenarios
Following are the some of the use cases of kuberneets in real-world scenarios
1. E-commerce
You deploy and manage the e-commerce websites by autoscaling and load balancing you can manage the millions of users and transactions.
You can store the static and dynamic data can deliver it to the across the world with out any latency to the end users.
3. Financial Services
Kubernetes is well suited for the critical application because of the level of security it is offering.
4. Healthcare
You can store the data of patient and take care the outcomes of the health of patient.
Feature
|
Kubernetes
|
Docker Swarm
|
OpenShift
|
Nomad
|
Deployment
|
Container were deployed using the Kubectl CLI and all the configuration required for the containers will be mentioned in the manifests.
|
Containers are deployed using docker compose file which contains all the configurations required for the containers.
|
You can deploy the containers using the manifests or openshift cli.
|
HCL configuration file is required to deploy the containers.
|
Scalability
|
You can manage the heavy incoming traffic by scaling the pods across the multiple nodes.
|
We can scale the containers but not as much as efficient as the kubernetes.
|
We can scale the containers but not as much as efficient as the kubernetes.
|
We can scale the containers but not as much as efficient as the kubernetes.
|
Networking
|
You can use different types of plugins to increase the flexibility.
|
simple to use which makes more easy then kubernetes.
|
Networking model is very much advanced.
|
You can integrate the no.of plugins you want.
|
Storage
|
Supports multiple storage options like persistent volume claim and you can even attach the cloud based storage.
|
You can use the local storage more flexibly.
|
Supports local and cloud storage.
|
Supports local and cloud storage.
|
Features of Kubernetes
1. Automated Scheduling
Kubernetes provides an advanced scheduler to launch containers on cluster nodes. It performs resource optimization.
2. Self-Healing Capabilities
It provides rescheduling, replacing, and restarting the containers that are dead.
3. Automated Rollouts and Rollbacks
It supports rollouts and rollbacks for the desired state of the containerized application.
4. Horizontal Scaling and Load Balancing
Kubernetes can scale up and scale down the application as per the requirements.
5. Resource Utilization
Kubernetes provides resource utilization monitoring and optimization, ensuring containers are using their resources efficiently.
6. Support for multiple clouds and hybrid clouds
Kubernetes can be deployed on different cloud platforms and run containerized applications across multiple clouds.
7. Extensibility
Kubernetes is very extensible and can be extended with custom plugins and controllers.
Kubernetes has a large and active community with frequent updates, bug fixes, and new features being added.
Kubernetes v/s Docker
The following table shows the comparison between Kubernetes vs Docker
Feature
|
Docker
|
Kubernetes
|
Purpose
|
A containerization platform to build, ship, and run containers.
|
A container orchestration tool that manages, deploys, and scales containerized applications.
|
Developed By
|
Docker Inc.
|
Originally by Google, now managed by CNCF.
|
Container Management
|
Manages individual containers.
|
Manages multiple containers across a cluster.
|
Scaling
|
Manual scaling of containers using docker run or docker-compose .
|
Auto-scaling with Horizontal Pod Autoscaler (HPA).
|
Networking
|
Uses a single-host bridge network by default.
|
Uses a cluster-wide network to connect services across multiple nodes.
|
Load Balancing
|
Basic load balancing via Docker Swarm.
|
Advanced load balancing with Services and Ingress.
|
Self-Healing
|
Containers need to be restarted manually if they fail.
|
Automatically replaces failed containers (Pods).
|
Rolling Updates
|
Not natively supported; requires recreating containers manually.
|
Supports zero-downtime rolling updates for applications.
|
Storage
|
Local persistent storage.
|
Persistent storage with Persistent Volumes (PV) & Persistent Volume Claims (PVC).
|
Cluster Management
|
Limited to Docker Swarm (less complex, but less powerful than Kubernetes).
|
Manages large-scale distributed systems with multiple nodes
|
Use Case
|
Best for developing and running containerized apps on a single machine.
|
Best for running, managing, and scaling containerized applications across multiple machines (clusters).
|
Architecture of Kubernetes
Kubernetes follows the client-server architecture where we have the master installed on one machine and the node on separate Linux machines. It follows the master-slave model, which uses a master to manage Docker containers across multiple Kubernetes nodes. A master and its controlled nodes(worker nodes) constitute a “Kubernetes cluster”. A developer can deploy an application in the docker containers with the assistance of the Kubernetes master.
.jpg)
Architecture of Kubernetes
Key Components of Kubernetes
1. Kubernetes- Master Node Components
Kubernetes master is responsible for managing the entire cluster, coordinates all activities inside the cluster, and communicates with the worker nodes to keep the Kubernetes and your application running. This is the entry point of all administrative tasks. When we install Kubernetes on our system we have four primary components of Kubernetes Master that will get installed. The components of the Kubernetes Master node are:
API Server
The API server is the entry point for all the REST commands used to control the cluster. All the administrative tasks are done by the API server within the master node. If we want to create, delete, update or display in Kubernetes object it has to go through this API server.API server validates and configures the API objects such as ports, services, replication, controllers, and deployments and it is responsible for exposing APIs for every operation. We can interact with these APIs using a tool called kubectl. ‘kubectl’ is a very tiny go language binary that basically talks to the API server to perform any operations that we issue from the command line. It is a command-line interface for running commands against Kubernetes clusters
Scheduler
It is a service in the master responsible for distributing the workload. It is responsible for tracking the utilization of the working load of each worker node and then placing the workload on which resources are available and can accept the workload. The scheduler is responsible for scheduling pods across available nodes depending on the constraints you mention in the configuration file it schedules these pods accordingly. The scheduler is responsible for workload utilization and allocating the pod to the new node.
Controller Manager
Also known as controllers. It is a daemon that runs in a non terminating loop and is responsible for collecting and sending information to the API server. It regulates the Kubernetes cluster by performing lifestyle functions such as namespace creation and lifecycle event garbage collections, terminated pod garbage collection, cascading deleted garbage collection, node garbage collection, and many more. Basically, the controller watches the desired state of the cluster if the current state of the cluster does not meet the desired state then the control loop takes the corrective steps to make sure that the current state is the same as that of the desired state. The key controllers are the replication controller, endpoint controller, namespace controller, and service account, controller. So in this way controllers are responsible for the overall health of the entire cluster by ensuring that nodes are up and running all the time and correct pods are running as mentioned in the specs file.
etc
It is a distributed key-value lightweight database. In Kubernetes, it is a central database for storing the current cluster state at any point in time and is also used to store the configuration details such as subnets, config maps, etc. It is written in the Go programming language.
2. Kubernetes-Worker Node Components
Kubernetes Worker node contains all the necessary services to manage the networking between the containers, communicate with the master node, and assign resources to the containers scheduled. The components of the Kubernetes Worker node are:
Kubelet
It is a primary node agent which communicates with the master node and executes on each worker node inside the cluster. It gets the pod specifications through the API server and executes the container associated with the pods and ensures that the containers described in the pods are running and healthy. If kubelet notices any issues with the pods running on the worker nodes then it tries to restart the pod on the same node. If the issue is with the worker node itself then the Kubernetes master node detects the node failure and decides to recreate the pods on the other healthy node.
Kube-Proxy
It is the core networking component inside the Kubernetes cluster. It is responsible for maintaining the entire network configuration. Kube-Proxy maintains the distributed network across all the nodes, pods, and containers and exposes the services across the outside world. It acts as a network proxy and load balancer for a service on a single worker node and manages the network routing for TCP and UDP packets. It listens to the API server for each service endpoint creation and deletion so for each service endpoint it sets up the route so that you can reach it.
Pods
A pod is a group of containers that are deployed together on the same host. With the help of pods, we can deploy multiple dependent containers together so it acts as a wrapper around these containers so we can interact and manage these containers primarily through pods.
Docker
Docker is the containerization platform that is used to package your application and all its dependencies together in the form of containers to make sure that your application works seamlessly in any environment which can be development or test or production. Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Docker is the world’s leading software container platform. It was launched in 2013 by a company called Dot cloud. It is written in the Go language. It has been just six years since Docker was launched yet communities have already shifted to it from VMs. Docker is designed to benefit both developers and system administrators making it a part of many DevOps toolchains. Developers can write code without worrying about the testing and production environment. Sysadmins need not worry about infrastructure as Docker can easily scale up and scale down the number of systems. Docker comes into play at the deployment stage of the software development cycle.

Application of Kubernetes
The following are some application of Kubernetes:
1. Microservices Architecture
Kubernetes is well-suited for managing microservices architectures, which involve breaking down complex applications into smaller, modular components that can be independently deployed and managed.
2. Cloud-native Development
Kubernetes is a key component of cloud-native development, which involves building applications that are designed to run on cloud infrastructure and take advantage of the scalability, flexibility, and resilience of the cloud.
3. Continuous Integration and Delivery
Kubernetes integrates well with CI/CD pipelines, making it easier to automate the deployment process and roll out new versions of your application with minimal downtime.
4. Hybrid and Multi-Cloud Deployments
Kubernetes provides a consistent deployment and management experience across different cloud providers, on-premise data centers, and even developer laptops, making it easier to build and manage hybrid and multi-cloud deployments.
Kubernetes can be used to manage high-performance computing workloads, such as scientific simulations, machine learning, and big data processing.
6. Edge Computing
Kubernetes is also being used in edge computing applications, where it can be used to manage containerized applications running on edge devices such as IoT devices or network appliances.
Similar Reads
Kubernetes Tutorial
Kubernetes is an open-source container management platform that automates the deployment, management, and scaling of container-based applications in different kinds of environments like physical, virtual, and cloud-native computing foundations. In this Kubernetes Tutorial, you are going to learn all
9 min read
Introduction to Kubernetes
Application Deployment
What are Kubernetes Containers?
Kubernetes is an open-source container orchestration framework that was originally developed by Google. Container orchestration is automation. It can facilitate you to deploy the identical application across different environments like physical machines, virtual machines cloud environments, or perha
15 min read
Kubernetes - Introduction to Container Orchestration
In this article, we will look into Container Orchestration in Kubernetes. But first, let's explore the trends that gave rise to containers, the need for container orchestration, and how that it has created the space for Kubernetes to rise to dominance and growth. The growth of technology into every
4 min read
Kubernetes - Images
Pre-requisite:- Kubernetes A container image is used to represent binary data that is being used to encapsulate an application and all its software dependencies. Container images can be represented as executable software bundles that run standalone and make very defined assumptions about their runti
3 min read
Kubernetes - Jobs
Pre-requisite: Kubernetes In the Kubernetes world, jobs are considered an object to act as a supervisor or controllers of a task. The Kubernetes job will create a pod, monitor the task, and recreate another one if that pod fails for some reason. Upon completion of the task, it will terminate the pod
4 min read
Kubernetes - Labels & Selectors
An open-source container management platform called Kubernetes automates the deployment, scaling, descaling, and load balancing of containers (also called a container orchestration tool). It was created by Google in Golang and has a sizable community as a result of that. Google eventually donated it
5 min read
Kubernetes - Namespaces
Kubernetes Namespace is a mechanism that enables you to organize resources. It is like a virtual cluster inside the cluster. A namespace isolates the resources from the resources of other namespaces. For example, You need to have different names for deployments/services in a namespace but you can ha
9 min read
Kubernetes - Node
Kubernetes Nodes are the Worker or master machines where the actual work happens. Each Kubernetes node has the services required to execute Pods and is controlled by the Control Plane. Each Kubernetes Node can have multiple pods and pods have containers running inside them. 3 processes in every Node
13 min read
Kubernetes - NodePort Service
NodePort service in Kubernetes is a service that is used to expose the application to the internet from where the end-users can access it. If you create a NodePort Service Kubernetes will assign the port within the range of (30000-32767). The application can be accessed by end-users using the node's
5 min read
Kubernetes - ClusterIP vs NodePort vs LoadBalancer
Three main service types are used in Kubernetes networking: ClusterIP, NodePort, and LoadBalancer. Each has a specific function in controlling external access and service-to-service communication. Comprehending their distinctions is essential for efficiently coordinating applications. This article e
8 min read
Kubernetes - Services
Software deployment, scaling, and management are all automated using Kubernetes, an open-source container orchestration system. K8s is another name for Kubernetes. Kubernetes was initially developed by Google and is now managed by the Cloud Native Computing Foundation. Despite the fact that it now s
3 min read
Kubernetes Pods: How to Create and Manage Them
Kubernetes is an open-source container orchestration system mainly used for automated software deployment, management, and scaling. Kubernetes is also known as K8s. Kubernetes was originally developed by Google, but it is now being maintained by the Cloud Native Computing Foundation. It was original
13 min read
How to Run Shell Commands in Kubernetes Pods or Containers
In Kubernetes, we create pods by adding an extra layer of information on containers. This Kubernetes in short is known as K8s, an open-source container orchestration tool developed by Google. It is used to orchestrate the containers for bringing Agility in software deployment through scaling, and ma
6 min read
Kubernetes - Creating Multiple Container in a Pod
Pre-requisite:- Kubernetes Kubernetes is a container management tool and it automates container deployment, load balancing, and container scaling. It is open-source and developed by Google in 2014 and written in Golang. All cloud providers adopt Kubernetes. It is scheduled runs and manages isolated
3 min read
Kubernetes - Replication Controller
With the help of the open-source container orchestration technology Kubernetes, software deployment, scalability, and management are mostly automated. Another name for Kubernetes is K8s. Google created Kubernetes, which is now overseen by the Cloud Native Computing Foundation. Even though it now wor
7 min read
Kuberneters - Difference Between Replicaset and Replication Controller
Pre-requisite: Kubernetes Kubernetes is also known as K8s is an open-source container orchestration tool developed by google which is used for automating software deployment, scaling, and management. Currently, it is being maintained by the cloud native computing foundation(CNCF). K8s has two versio
4 min read
What is Kubernetes Deployment?
Kubernetes is an open-source Container Management tool that automates container deployment, container scaling, descaling, and container load balancing (also called as container orchestration tool). It is written in Golang and has a huge community because it was first developed by Google and later do
10 min read
Configmaps
Kubernetes - ConfigMaps
An open-source container orchestration system called Kubernetes is primarily used for automated software deployment, scaling, and management. Another name for Kubernetes is K8s. Originally developed by Google, Kubernetes is now managed by the Cloud Native Computing Foundation. Although it now suppor
10 min read
Kubernetes - Create Config Map From Files
Pre-requisite: Kubernetes While creating a manifest file in Kubernetes, we can define environment variables. However, when you have a lot of manifest files, it will become difficult to manage the environment data stored in various manifest files. To overcome this issue, we can manage environment dat
2 min read
Kubernetes - Create ConfigMap From YAML File
A ConfigMap is a dictionary consisting of non-confidential data. Its primary role is to keep the configuration separate from the container image. ConfigMap can be created in different ways. This article will cover the declarative approach to creating ConfigMap from the YAML file. Example: apiVersion
1 min read
Kubernetes - Config Map From Directory
Pre-requisite:- Kubernetes Software deployment, scalability, and administration are mostly automated using Kubernetes, an open-source container orchestration framework. K8s is another name for Kubernetes. Kubernetes was initially developed by Google and is now managed by the Cloud Native Computing F
2 min read
Kubernetes - Injecting ConfigMap as Files
Pre-requisite:- Kubernetes The automated deployment, scaling, and administration of software using a system called Kubernetes, an open-source container orchestration tool. K8s is another name for Kubernetes. Kubernetes was initially developed by Google and is now managed by the Cloud Native Computin
3 min read
Kubernetes - Injecting ConfigMap in Pods
Pre-requisite: Kubernetes Leveraging the open-source container orchestration engine Kubernetes to automate the deployment, scalability, and management of applications. Another name for Kubernetes is K8s. Google originally created Kubernetes, which is currently overseen by the Cloud Native Computing
3 min read
Scaling and Updating Applications
Kubernetes - Service DNS
An open-source container orchestration system called Kubernetes is primarily employed for the automated deployment, scaling, and management of software. Another name for Kubernetes is K8s. Initially created by Google, Kubernetes is currently maintained by the Cloud Native Computing Foundation. Altho
11 min read
Additional Topics
What is Kubernetes API ?Complete Guide
Kubernetes API is an application that serves Kubernetes functionality through a RESTful interface and stores the state of the cluster via HTTP. Users can directly interact with the Kubernetes API or via tools like kubectl. It supports retrieving, creating, updating, and deleting primary resources vi
14 min read
Kubernetes - Taint and Toleration
A pod is a group of one or more containers and is the smallest deployable unit in Kubernetes. A node is a representation of a single machine in a cluster (we can simply view these machines as a set of CPU and RAM). A node can be a virtual machine, a physical machine in a data center hosted on a clou
6 min read
Kubernetes Resource Model (KRM) and How to Make Use of YAML?
Here we will explain how YAML can simplify system management and automation of most processes so that Kubernetes is a convenient working system. Basic Kubernetes Models: KRM and Everything-as-CodeAccording to Kubernetes co-founder Brian Grant, Kubernetes is very convenient thanks to the Kubernetes R
6 min read
Installing Private Git Server on K8s Cluster with Gitea and AKS
In this article, we are going to install a self-hosted Gitea server on top of Azure Kubernetes Service with Helm and set up a git repo. Having a private Git server might be beneficial these days. Gitea is a community-managed Git-compatible lightweight code hosting solution written in Go. It is publi
4 min read
Enable Remote Debugging For Java Application Deployed in Kubernetes Environment
During Development, developers have to debug their applications to resolve code problems. In order to debug a java application which is deployed on remote machine in a Kubernetes cluster, first developer has to do some steps to enable its application ready for debugging. Below are the manual steps t
2 min read
How to Enable JMX For Java Application Running in the Kubernetes Cluster?
Many times we want to monitor our application's CPU utilization, background thread behavior, and most importantly memory consumptions for tasks that deal with loads for data (500MB - 1GB) or much more data. Such monitoring helps to find which operation is causing heavy CPU or Memory utilization and
3 min read