Explore Courses
Liverpool Business SchoolLiverpool Business SchoolMBA by Liverpool Business School
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA (Master of Business Administration)
  • 15 Months
Popular
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Business Administration (MBA)
  • 12 Months
New
Birla Institute of Management Technology Birla Institute of Management Technology Post Graduate Diploma in Management (BIMTECH)
  • 24 Months
Liverpool John Moores UniversityLiverpool John Moores UniversityMS in Data Science
  • 18 Months
Popular
IIIT BangaloreIIIT BangalorePost Graduate Programme in Data Science & AI (Executive)
  • 12 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with concentration in Generative AI
  • 3 Years
upGradupGradData Science Bootcamp with AI
  • 6 Months
New
University of MarylandIIIT BangalorePost Graduate Certificate in Data Science & AI (Executive)
  • 8-8.5 Months
upGradupGradData Science Bootcamp with AI
  • 6 months
Popular
upGrad KnowledgeHutupGrad KnowledgeHutData Engineer Bootcamp
  • Self-Paced
upGradupGradCertificate Course in Business Analytics & Consulting in association with PwC India
  • 06 Months
OP Jindal Global UniversityOP Jindal Global UniversityMaster of Design in User Experience Design
  • 12 Months
Popular
WoolfWoolfMaster of Science in Computer Science
  • 18 Months
New
Jindal Global UniversityJindal Global UniversityMaster of Design in User Experience
  • 12 Months
New
Rushford, GenevaRushford Business SchoolDBA Doctorate in Technology (Computer Science)
  • 36 Months
IIIT BangaloreIIIT BangaloreCloud Computing and DevOps Program (Executive)
  • 8 Months
New
upGrad KnowledgeHutupGrad KnowledgeHutAWS Solutions Architect Certification
  • 32 Hours
upGradupGradFull Stack Software Development Bootcamp
  • 6 Months
Popular
upGradupGradUI/UX Bootcamp
  • 3 Months
upGradupGradCloud Computing Bootcamp
  • 7.5 Months
Golden Gate University Golden Gate University Doctor of Business Administration in Digital Leadership
  • 36 Months
New
Jindal Global UniversityJindal Global UniversityMaster of Design in User Experience
  • 12 Months
New
Golden Gate University Golden Gate University Doctor of Business Administration (DBA)
  • 36 Months
Bestseller
Ecole Supérieure de Gestion et Commerce International ParisEcole Supérieure de Gestion et Commerce International ParisDoctorate of Business Administration (DBA)
  • 36 Months
Rushford, GenevaRushford Business SchoolDoctorate of Business Administration (DBA)
  • 36 Months
KnowledgeHut upGradKnowledgeHut upGradSAFe® 6.0 Certified ScrumMaster (SSM) Training
  • Self-Paced
KnowledgeHut upGradKnowledgeHut upGradPMP® certification
  • Self-Paced
IIM KozhikodeIIM KozhikodeProfessional Certification in HR Management and Analytics
  • 6 Months
Bestseller
Duke CEDuke CEPost Graduate Certificate in Product Management
  • 4-8 Months
Bestseller
upGrad KnowledgeHutupGrad KnowledgeHutLeading SAFe® 6.0 Certification
  • 16 Hours
Popular
upGrad KnowledgeHutupGrad KnowledgeHutCertified ScrumMaster®(CSM) Training
  • 16 Hours
Bestseller
PwCupGrad CampusCertification Program in Financial Modelling & Analysis in association with PwC India
  • 4 Months
upGrad KnowledgeHutupGrad KnowledgeHutSAFe® 6.0 POPM Certification
  • 16 Hours
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Science in Artificial Intelligence and Data Science
  • 12 Months
Bestseller
Liverpool John Moores University Liverpool John Moores University MS in Machine Learning & AI
  • 18 Months
Popular
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with concentration in Generative AI
  • 3 Years
IIIT BangaloreIIIT BangaloreExecutive Post Graduate Programme in Machine Learning & AI
  • 13 Months
Bestseller
IIITBIIITBExecutive Program in Generative AI for Leaders
  • 4 Months
upGradupGradAdvanced Certificate Program in GenerativeAI
  • 4 Months
New
IIIT BangaloreIIIT BangalorePost Graduate Certificate in Machine Learning & Deep Learning (Executive)
  • 8 Months
Bestseller
Jindal Global UniversityJindal Global UniversityMaster of Design in User Experience
  • 12 Months
New
Liverpool Business SchoolLiverpool Business SchoolMBA with Marketing Concentration
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA with Marketing Concentration
  • 15 Months
Popular
MICAMICAAdvanced Certificate in Digital Marketing and Communication
  • 6 Months
Bestseller
MICAMICAAdvanced Certificate in Brand Communication Management
  • 5 Months
Popular
upGradupGradDigital Marketing Accelerator Program
  • 05 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Corporate & Financial Law
  • 12 Months
Bestseller
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in AI and Emerging Technologies (Blended Learning Program)
  • 12 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Intellectual Property & Technology Law
  • 12 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Dispute Resolution
  • 12 Months
upGradupGradContract Law Certificate Program
  • Self paced
New
ESGCI, ParisESGCI, ParisDoctorate of Business Administration (DBA) from ESGCI, Paris
  • 36 Months
Golden Gate University Golden Gate University Doctor of Business Administration From Golden Gate University, San Francisco
  • 36 Months
Rushford Business SchoolRushford Business SchoolDoctor of Business Administration from Rushford Business School, Switzerland)
  • 36 Months
Edgewood CollegeEdgewood CollegeDoctorate of Business Administration from Edgewood College
  • 24 Months
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with Concentration in Generative AI
  • 36 Months
Golden Gate University Golden Gate University DBA in Digital Leadership from Golden Gate University, San Francisco
  • 36 Months
Liverpool Business SchoolLiverpool Business SchoolMBA by Liverpool Business School
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA (Master of Business Administration)
  • 15 Months
Popular
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Business Administration (MBA)
  • 12 Months
New
Deakin Business School and Institute of Management Technology, GhaziabadDeakin Business School and IMT, GhaziabadMBA (Master of Business Administration)
  • 12 Months
Liverpool John Moores UniversityLiverpool John Moores UniversityMS in Data Science
  • 18 Months
Bestseller
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Science in Artificial Intelligence and Data Science
  • 12 Months
Bestseller
IIIT BangaloreIIIT BangalorePost Graduate Programme in Data Science (Executive)
  • 12 Months
Bestseller
O.P.Jindal Global UniversityO.P.Jindal Global UniversityO.P.Jindal Global University
  • 12 Months
WoolfWoolfMaster of Science in Computer Science
  • 18 Months
New
Liverpool John Moores University Liverpool John Moores University MS in Machine Learning & AI
  • 18 Months
Popular
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with concentration in Generative AI
  • 3 Years
Rushford, GenevaRushford Business SchoolDoctorate of Business Administration (AI/ML)
  • 36 Months
Ecole Supérieure de Gestion et Commerce International ParisEcole Supérieure de Gestion et Commerce International ParisDBA Specialisation in AI & ML
  • 36 Months
Golden Gate University Golden Gate University Doctor of Business Administration (DBA)
  • 36 Months
Bestseller
Ecole Supérieure de Gestion et Commerce International ParisEcole Supérieure de Gestion et Commerce International ParisDoctorate of Business Administration (DBA)
  • 36 Months
Rushford, GenevaRushford Business SchoolDoctorate of Business Administration (DBA)
  • 36 Months
Liverpool Business SchoolLiverpool Business SchoolMBA with Marketing Concentration
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA with Marketing Concentration
  • 15 Months
Popular
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Corporate & Financial Law
  • 12 Months
Bestseller
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Intellectual Property & Technology Law
  • 12 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Dispute Resolution
  • 12 Months
IIITBIIITBExecutive Program in Generative AI for Leaders
  • 4 Months
New
IIIT BangaloreIIIT BangaloreExecutive Post Graduate Programme in Machine Learning & AI
  • 13 Months
Bestseller
upGradupGradData Science Bootcamp with AI
  • 6 Months
New
upGradupGradAdvanced Certificate Program in GenerativeAI
  • 4 Months
New
KnowledgeHut upGradKnowledgeHut upGradSAFe® 6.0 Certified ScrumMaster (SSM) Training
  • Self-Paced
upGrad KnowledgeHutupGrad KnowledgeHutCertified ScrumMaster®(CSM) Training
  • 16 Hours
upGrad KnowledgeHutupGrad KnowledgeHutLeading SAFe® 6.0 Certification
  • 16 Hours
KnowledgeHut upGradKnowledgeHut upGradPMP® certification
  • Self-Paced
upGrad KnowledgeHutupGrad KnowledgeHutAWS Solutions Architect Certification
  • 32 Hours
upGrad KnowledgeHutupGrad KnowledgeHutAzure Administrator Certification (AZ-104)
  • 24 Hours
KnowledgeHut upGradKnowledgeHut upGradAWS Cloud Practioner Essentials Certification
  • 1 Week
KnowledgeHut upGradKnowledgeHut upGradAzure Data Engineering Training (DP-203)
  • 1 Week
MICAMICAAdvanced Certificate in Digital Marketing and Communication
  • 6 Months
Bestseller
MICAMICAAdvanced Certificate in Brand Communication Management
  • 5 Months
Popular
IIM KozhikodeIIM KozhikodeProfessional Certification in HR Management and Analytics
  • 6 Months
Bestseller
Duke CEDuke CEPost Graduate Certificate in Product Management
  • 4-8 Months
Bestseller
Loyola Institute of Business Administration (LIBA)Loyola Institute of Business Administration (LIBA)Executive PG Programme in Human Resource Management
  • 11 Months
Popular
Goa Institute of ManagementGoa Institute of ManagementExecutive PG Program in Healthcare Management
  • 11 Months
IMT GhaziabadIMT GhaziabadAdvanced General Management Program
  • 11 Months
Golden Gate UniversityGolden Gate UniversityProfessional Certificate in Global Business Management
  • 6-8 Months
upGradupGradContract Law Certificate Program
  • Self paced
New
IU, GermanyIU, GermanyMaster of Business Administration (90 ECTS)
  • 18 Months
Bestseller
IU, GermanyIU, GermanyMaster in International Management (120 ECTS)
  • 24 Months
Popular
IU, GermanyIU, GermanyB.Sc. Computer Science (180 ECTS)
  • 36 Months
Clark UniversityClark UniversityMaster of Business Administration
  • 23 Months
New
Golden Gate UniversityGolden Gate UniversityMaster of Business Administration
  • 20 Months
Clark University, USClark University, USMS in Project Management
  • 20 Months
New
Edgewood CollegeEdgewood CollegeMaster of Business Administration
  • 23 Months
The American Business SchoolThe American Business SchoolMBA with specialization
  • 23 Months
New
Aivancity ParisAivancity ParisMSc Artificial Intelligence Engineering
  • 24 Months
Aivancity ParisAivancity ParisMSc Data Engineering
  • 24 Months
The American Business SchoolThe American Business SchoolMBA with specialization
  • 23 Months
New
Aivancity ParisAivancity ParisMSc Artificial Intelligence Engineering
  • 24 Months
Aivancity ParisAivancity ParisMSc Data Engineering
  • 24 Months
upGradupGradData Science Bootcamp with AI
  • 6 Months
Popular
upGrad KnowledgeHutupGrad KnowledgeHutData Engineer Bootcamp
  • Self-Paced
upGradupGradFull Stack Software Development Bootcamp
  • 6 Months
Bestseller
KnowledgeHut upGradKnowledgeHut upGradBackend Development Bootcamp
  • Self-Paced
upGradupGradUI/UX Bootcamp
  • 3 Months
upGradupGradCloud Computing Bootcamp
  • 7.5 Months
PwCupGrad CampusCertification Program in Financial Modelling & Analysis in association with PwC India
  • 5 Months
upGrad KnowledgeHutupGrad KnowledgeHutSAFe® 6.0 POPM Certification
  • 16 Hours
upGradupGradDigital Marketing Accelerator Program
  • 05 Months
upGradupGradAdvanced Certificate Program in GenerativeAI
  • 4 Months
New
upGradupGradData Science Bootcamp with AI
  • 6 Months
Popular
upGradupGradFull Stack Software Development Bootcamp
  • 6 Months
Bestseller
upGradupGradUI/UX Bootcamp
  • 3 Months
PwCupGrad CampusCertification Program in Financial Modelling & Analysis in association with PwC India
  • 4 Months
upGradupGradCertificate Course in Business Analytics & Consulting in association with PwC India
  • 06 Months
upGradupGradDigital Marketing Accelerator Program
  • 05 Months

Kubernetes Architecture: Everything You Need to Know

Updated on 24 November, 2022

5.97K+ views
9 min read

About Kubernetes 

Kubernetes is an open-source platform with features like resource maximization, automatic deployment process and updation, auto-scaling, self-healing, automated rollbacks and rollouts, and container orchestrators load balancing, and service discovery, auto-restart, auto-placement, and auto-replication, etc. Kubernetes is not only a container orchestrator; it is also an OS for cloud-based applications.

It is like a platform for running an application similar to other applications that run on Windows, MacOS, or Linux with greater flexibility. It reduces the load of orchestrating and allows developers to completely focus on container-centric workflows for the purpose of the self-service operation. Developers have the advantage of a very high- level automation in deployment and application management. It can be integrated with any environment to enhance capabilities.

Check out our free courses to get an edge over the competition

Read: Kubernetes Salary in India

Kubernetes Architecture

Kubernetes architecture consists of layers: Higher and lower layers. In this individual, physical or virtual machines are brought together into a cluster. A shared network is used for communication between each server. Kubernetes has one master (at least) acting as a control plane, a distributed storage system. The multiple cluster nodes are also known as Kubelets.

  • The master of Kubernetes, control plane, schedules the deployments, exposes the API and manages the overall Kubernetes cluster. 
  • The cluster node runs a container runtime, agent for communicating with the master, and other monitoring components, logging, etc.

Check out upGrad’s Advanced Certification in Cloud Computing 

The Kubernetes architecture and Kubernetes components are illustrated in the image below.

Source

Let’s have a look at the Kubernetes components.

Kubernetes Components

Master: Kubernetes Control Plane

The master maintains the data of every object in Kubernetes. As it manages the whole cluster, hence it is called as Master. It controls object states, maintains the matching of the system’s real state with the required state, responds to changes, etc.

It contains the following three important components:

  • Kube- API server: Kubernetes API server
  • Kube- Scheduler: Pod scheduling in worker nodes
  • Kube- Controller: Manages pod replication

Check out upGrad’s Advanced Certification in Cyber Security

If there are multiple master nodes, then these components are replicated across all master nodes.

The lifecycle orchestration for various applications that include updates, scaling, etc. are done by API Server. It works as a gateway for the clients that are not within the cluster. The API server does the authentication. It also acts like an intermediary to pods and nodes.

The Controller performs the following tasks:

  • Running the core control loops
  • Making changes for driving status towards the required state.
  • Watching the cluster state

It also offers routing, storage services, load balancing, DNS network services, VM instances by integrating into public clouds. The different controllers that drive state for autoscaling, nodes, services and pods, namespaces.  

The container scheduling throughout the nodes is done by Scheduler within the cluster; considering different resource limitations/guarantees, or anti-affinity/affinity specifications.

The Kubernetes Control Plane taxonomy is shown below:

Source

Cluster Nodes: Kubelets

Kubelets are different machines that are responsible for running containers. The master does the management of cluster nodes. It is also called Minion. The cluster nodes are considered as the primary controller of Kubernetes. It drives Docker, the execution layer of containers.

It contains the following components:

  • Pod: Group of containers
  • Docker: Container-based technology, user space of OS
  • Kubelet: Container agents that are responsible for maintaining the set of pods.
  • Kube-proxy: Routes traffic coming into a node from the service.

The Kubernetes Cluster Node taxonomy is shown below:

Pods and Services

Pods are an important concept in Kubernetes with which developers interact. It represents the running process. It can host application stacks that are vertically-integrated such as WordPress LAMP applications. Given below are different pod types:

Pod Type Functionality
ReplicaSet

Simple Pod type

Ensures the running of fixed pods

Deployment

A declarative way pod management via ReplicaSet

Rolling updates and rollback mechanisms are included.

StatefulSet  Manages pods that should persist
Daemonset

Ensures each node runs a pod instance.

Manages cluster services such as log forwarding and health monitoring.

CronJob and Job Runs jobs that are short-lived as a scheduler

A pod can consist of a number of containers and external volumes. The taxonomy of pod is shown in the below diagram:

Source

Services do the tracking of Pods. For defining pod and service associations, selectors or labels are used instead of IP address assignments. This simplifies the addition of pods to service and releasing of new versions. Following are the different service types:

Service Type Functionality
ClusterIP Default Type; Exposes the service on an internal IP and makes the service reachable
NodePort Allows developers to set up their own load balancers
LoadBalancer Automates their configuration
ExternalName Commonly used for creating service within Kubernetes.

The typical cloud deployment used is the LoadBalancer type. Kubernetes supports the abstraction of high-level Ingress to solve complexity. Users can display different services within the same IP address by making the use of the same load balancers.

Read more: Openshift Vs Kubernetes: Difference Between Openshift & Kubernetes

Kubernetes Networking

Mostly CNI (Container Network Interface) is used for obscuring the basic network. Calico, a fully-routed option, can also be used. In both options, the communication is done on a cluster-wide pod network and controlled by Calico or Flannel (CNI provider). Containers can communicate within a pod over the localhost without any restriction. Movement from external sources to services or pods to services is done via Kube-proxy.

Persistent Storage 

A directory having some data is referred to as Volumes in Kubernetes. The directories are accessible to pods. There are many storage types in Kubernetes. Containers within the pod can consume any storage. The public cloud services such as NFS, Amazon Elastic Block Store, Iscsi, CephFS, etc. are used for mounting files and block storage to a pod. PVs (PersistentVolumes) are cluster-wide objects that are tied to the existing storage resources.

Within a namespace, the request for a storage consumption is initiated by PersistentVolumeClaim. The different states of PV are available, bound, released, and failed. The StorageClasses are the abstraction layer. It differentiates the underlying storage quality and separates out various characteristics. The pod can request new storage dynamically with the help of StorageClasses and PersistentVolumeClaim. 

Source

upGrad’s Exclusive Software Development Webinar for you –

SAAS Business – What is So Different?

Discovering and Publishing Services

Depending on the cluster’s version, Kubernetes depends on either Kube-DNS or CoreDNS for discovering the services. These integrated DNS services create, update, and remove DNS records. It helps applications to target other pods and services through a consistent and simple naming scheme.   

Example (Source)

For a Kubernetes service, the DNS record can be service.namespace.svc.cluster.local

DNS record, a pod can have: 10.32.0.125.namespace.pod.cluster.local

Source

Namespaces 

The Physical cluster containing virtual clusters are called Namespaces. It provides a separate virtual environment to multiple users along with respective access rights for Kubernetes objects.

Labels

Labels are used to differentiate resources present in a single namespace. The attributes are defined by key or value pairs. Labels are used for mapping organization structures over Kubernetes objects. It can describe the environment, release state, app tier, or identification of customers. It prevents the hard linking of objects.

Annotations

Annotations are used for adding arbitrary unidentified baggage or metadata to objects. It is used as a declarative configuration tooling.

Must Read: Kubernetes Vs. Docker: Primary Differences You Should Know

Get Software Engineering degrees from the World’s top Universities. Earn Executive PG Programs, Advanced Certificate Programs, or Masters Programs to fast-track your career.

Conclusion

The technology of Kubernetes is developing fast, and it is a cost-effective solution for the future. It offers great stability to applications.   

All the basic concepts of Kubernetes architecture and Kubernetes components are explained in this article. 

If you’re interested to learn more about Kubernetes, big data, check out upGrad & IIIT-B’s Executive PG Program in Full-stack Software Development which is designed for working professionals and offers 500+ hours of rigorous training, 9+ projects, and assignments, IIIT-B Alumni status, practical hands-on capstone projects & job assistance with top firms.

Frequently Asked Questions (FAQs)

1. Why is Kubernetes used?

There are various advantages of adopting Kubernetes. Firstly, it offers an easier method to scale up software applications, which virtual machines cannot do. With the help of Kubernetes, it is possible to keep the code operational and also expedite the process of delivery. Moreover, Kubernetes API also offers options to automate various tasks related to provisioning and resource management. Besides, you can consider Kubernetes as a platform and build on top of it to lay the groundwork for cloud migration activities in the future. It helps in preparing the workloads that you plan to move to the cloud and also adds a layer of resilience to containerized workloads.

2. What are the prerequisites for learning Kubernetes?

To learn Kubernetes and understand its concepts efficiently, it is vital to have a basic idea of how containers and containerized applications work. In this regard, focusing on Docker containers will be advantageous. As a beginner, it is better to start with the fundamentals like virtualization concepts and then gradually move ahead to the advanced concepts. Apart from these, it is equally helpful if you also have a basic understanding and familiarity with the Linux platform, YAML (Yet Another Markup Language), and command-line interface. Having a firm grip on the fundamental concepts will make understanding the more complex topics easier and save time and effort in learning Kubernetes.

3. What is the difference between containerization and virtualization?

Before the advent of containers, virtual machines, i.e. virtualization, was adopted to optimize server resources and capacity. With the help of virtualization, it will appear that you are running multiple servers or computers with several different operating systems on an individual physical machine. Running several operating systems concurrently on the same physical machine is made possible by the hypervisor. Containers are used to encapsulate an application, including its frameworks, libraries and other components. Containerization helps solve various problems related to application development and deployment. These are lightweight and facilitates speedier scaling up without requiring extra server space.

RELATED PROGRAMS