0% found this document useful (0 votes)
25 views8 pages

Understanding The Kubernetes Architecture With A Use-Case - Edureka

The document provides an overview of Kubernetes architecture, detailing its main components such as master nodes, worker nodes, and etcd, along with their roles and responsibilities. It explains the functionality of various elements like the API server, scheduler, controller manager, and kubelet, as well as the concept of Pods. Additionally, it includes a use case of Luminis Technologies, illustrating how they implemented Kubernetes to streamline their application deployment process.

Uploaded by

feraba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views8 pages

Understanding The Kubernetes Architecture With A Use-Case - Edureka

The document provides an overview of Kubernetes architecture, detailing its main components such as master nodes, worker nodes, and etcd, along with their roles and responsibilities. It explains the functionality of various elements like the API server, scheduler, controller manager, and kubelet, as well as the concept of Pods. Additionally, it includes a use case of Luminis Technologies, illustrating how they implemented Kubernetes to streamline their application deployment process.

Uploaded by

feraba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

Understanding Kubernetes Architecture


Last updated on May 20,2020 25.6K Views

Samarpit

Containers have become the de nitive way to develop applications because they provide packages that contain everything you
need to run your applications. In this blog, we will discuss Kubernetes architecture and the moving parts of Kubernetes and also
what are the key elements, what are the roles and responsibilities of them in Kubernetes architecture.

Kubernetes: An Overview
Kubernetes is an open-source Container Management tool which automates container deployment, container (de)scaling &
container load balancing.

Written on Golang, it has a huge community because it was rst developed by Google & later donated
to CNCF
Can group ‘n’ no of containers into one logical unit for managing & deploying them

If you would favor a video explanation on Kubernetes Architecture, then you can go through the below video.

Kubernetes Architecture | Edureka

This video will give you an introduction to popular DevOps tool – Kubernetes, and will deep dive into Kubernetes Architecture
and its working.

Want To Explore More About Kubernetes


Explore Now
Subscribe to our Newsletter, and get personalized recommendations.
×
Sign up with Google
Features Of Kubernetes
For a detailed explanation, check this blog.
Signup with Facebook
 
FREE WEBINAR
Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 1/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

Kubernetes Architecture/Kubernetes Components

Kubernetes Architecture has the following main components:

Master nodes
Worker/Slave nodes
Distributed key-value store(etcd.)

Master Node
It is the entry point for all administrative tasks which is responsible for managing the Kubernetes cluster. There can be more than
one master node in the cluster to check for fault tolerance. More to
Subscribe than
ourone master node
Newsletter, putspersonalized
and get the system in a High Availability
recommendations.
×
mode, in which one of them will be the main node which we perform all the tasks.
Sign up with Google
For managing the cluster state, it uses etcd in which all the master nodes connect to it.

Let us discuss the components of a master node. As you can seeSignup


in the with
diagram it consists of 4 components:

Facebook

API server: FREE WEBINAR



Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 2/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

Kubernetes Certi cation Training


Instructor-led Sessions
Assessments
Lifetime Access
24 x 7 Expert Support

Explore Curriculum

Performs all the administrative tasks through the API server within the master node.
In this REST commands are sent to the API server which validates and processes the requests.
After requesting, the resulting state of the cluster is stored in the distributed key-value store.

Scheduler:

The scheduler schedules the tasks to slave nodes. It stores the resource usage information for each slave node.
It schedules the work in the form of Pods and Services.
Before scheduling the task, the scheduler also takes into account the quality of the service requirements, data locality,
a nity, anti-a nity, etc.

Controller manager:

Also known as controllers.


It is a daemon which regulates the Kubernetes cluster which manages the di erent non-terminating control loops.
It also performs lifecycle functions such as namespace creation and lifecycle, event garbage collection, terminated-pod
garbage collection, cascading-deletion garbage collection, node garbage collection, etc.
Basically, a controller watches the desired state of the objects it manages and watches their current state through the API
server. If the current state of the objects it manages does not meet the desired state, then the control loop takes corrective
steps to make sure that the current state is the same as the desired state.

What is the ETCD?

etcd is a distributed key-value store which stores the cluster state.


It can be part of the Kubernetes Master, or, it can be con gured externally.
etcd is written in the Go programming language. In Kubernetes, besides storing the cluster state (based on the Raft
Consensus Algorithm) it is also used to store con guration details such as subnets, Con gMaps, Secrets, etc.
A raft is a consensus algorithm designed as an alternative to Paxos. The Consensus problem involves multiple servers
agreeing on values; a common problem that arises in the context of replicated state machines. Raft de nes three di erent
roles (Leader, Follower, and Candidate) and achieves consensus via an elected leader

Now you have understood the functioning of Master node. Let’s seetowhat
Subscribe our is the Worker/Minions
Newsletter, node and itsrecommendations.
and get personalized components. ×
Worker Node (formerly minions)
Sign up with Google
It is a physical server or you can say a VM which runs the applications using Pods (a pod scheduling unit) which is controlled by
the master node. On a physical server (worker/slave node), pods are scheduled. For accessing the applications from the external


Signup with Facebook
world, we connect to nodes.

Let’s see what are the following components:



FREE WEBINAR
Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 3/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

Container runtime:

To run and manage a container’s lifecycle, we need a container


runtime on the worker node.
Sometimes, Docker is also referred to as a container runtime, but to be
precise, Docker is a platform which uses containers as a container
runtime.

Kubelet:

It is an agent which communicates with the Master node and executes on


nodes or the worker nodes. It gets the Pod speci cations through the API
server and executes the containers associated with the Pod and ensures
that the containers described in those Pod are running and healthy.

Kube-proxy:

vOps Training

DEVOPS AWS CERTIFIED KUBERNETES

󡁧 CERTIFICATION
TRAINING 󡞂 DEVOPS ENGINEER
TRAINING 󡘈 CERTIFICATION
TRAINING 󡅵 GIT AND GIT

DevOps Certi cation AWS Certi ed DevOps Kubernetes Certi cation


Git and GitHub
Training Engineer Training Training

Reviews Reviews Reviews Reviews

     5(94181)      5(4068)      5(6902)      5(3599)

Kube-proxy runs on each node to deal with individual host sub-netting and ensure that the services are available to external
parties.
It serves as a network proxy and a load balancer for a service on a single worker node and manages the network routing for
TCP and UDP packets.
It is the network proxy which runs on each worker node and listens to the API server for each Service endpoint
creation/deletion.
For each Service endpoint, kube-proxy sets up the routes so that it can reach to it.

Pods
A pod is one or more containers that logically go together. Pods run on nodes. Pods run together as a logical unit. So they have
the same shared content. They all share the same IP address but can reach other Pods via localhost, as well as shared storage.
Pods don’t need to all run on the same machine as containers can span more than one machine. One node can run multiple
pods.

Use Case: How Luminis Technologies used Kubernetes in production


Problem: Luminis, a software technology company used AWS for deploying their applications. For deploying the applications, it
required custom scripts and tools to automate which was not easy for teams other than operations. Their small teams didn’t
have the resources to learn all of the details about the scripts and tools.

Main Issue: There was no unit-of-deployment which created a gap between the development and the operations teams.

Solution:

How did they Deploy in Kubernetes:

Subscribe to our Newsletter, and get personalized recommendations.


×
Sign up with Google

Signup with Facebook


 
FREE WEBINAR
Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 4/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

They used a blue-green deployment mechanism to reduce the complexity of handling multiple concurrent versions. (As there’s
always only one version of the application running in the background)

In this, a component called “Deployer” that orchestrated the deployment was created by their team by open sourcing
their implementation under the Apache License as part of the Amdatu umbrella project. This mechanism performed the health
checking on the pods before re-con guring the load balancer because they wanted each component that was deployed to
provide a health check.

How did they Automate Deployments?

With the Deployer in place, they were able to engage up deployments


to a build pipeline. After a successful build, their build server pushed
a new Docker image to a registry on Docker Hub. Then the build
server invoked the Deployer to automatically deploy the new version
to a test environment. That same image was promoted to production
by triggering the Deployer on the production environment.

Kubernetes Certi cation Training


Weekday / Weekend Batches

See Batch Details

Subscribe to our youtube channel to get new updates..!


Subscribe
edureka! to our Newsletter, and get personalized recommendations.
×
YouTube 2 milhões
Sign up with Google

So, that’s the Kubernetes architecture in a simple fashion. So that brings an end to this blog on Kubernetes Architecture. Do look


Signup with Facebook
out for other blogs in this series which will explain the various other aspects of Kubernetes.

Got a question for us? Please mention it in the comments section and we will get backhave
to you. FREE WEBINAR
Already an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 5/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

Recommended videos for you

   
Continuous Integration With DevOps Tutorial For Beginners DevOps is Going to Replace Ansible Tutorial For
Jenkins SDLC! Learn Why – Ansible Playbook

Watch Now Watch Now Watch Now Watch Now

‹›

Recommended blogs for you

Maven Interview Questions: What is Continuous Git Tutorial – Commands And Top Puppet Interview
Everything You Need To Know Integration? Operations In Git Questions For 2020 –
Need To Know Abou

Read Article Read Article Read Article Read Article

‹›

Comments 0 Comments

Join the discussion

Subscribe to our Newsletter, and get personalized recommendations.


×
Sign up with Google
Trending Courses in DevOps

Signup with Facebook


 
FREE WEBINAR
Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 6/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

DevOps Certi cation AWS Certi ed DevOps Kubernetes Certi cation Git and GitHub
Training Engineer Training Training
 95k Enrolled Learners  5k Enrolled Learners  7k Enrolled Learners  4k Enrolled Learners
 Weekend/Weekday  Weekend  Weekend  Weekend
 Live Class  Live Class  Live Class  Self Paced

Reviews Reviews Reviews Reviews

 5 (37700)  5 (1650)  5 (2800)  5 (1450)

‹›
Browse Categories

Arti cial Intelligence BI and Visualization Big Data Blockchain Cloud Computing Cyber Security Data Science

Data Warehousing and ETL Databases Digital Marketing Enterprise Front End Web Development Mobile Development

Operating Systems Programming & Frameworks Project Management and Methodologies Robotic Process Automation Software Testing

Systems & Architecture


TRENDING CERTIFICATION COURSES TRENDING MASTERS COURSES

DevOps Certi cation Training Data Scientist Masters Program

AWS Architect Certi cation Training DevOps Engineer Masters Program

Big Data Hadoop Certi cation Training Cloud Architect Masters Program

Tableau Training & Certi cation Big Data Architect Masters Program

Python Certi cation Training for Data Science Machine Learning Engineer Masters Program

Selenium Certi cation Training Full Stack Web Developer Masters Program

PMP® Certi cation Exam Training Business Intelligence Masters Program

Robotic Process Automation Training using UiPath Data Analyst Masters Program

Apache Spark and Scala Certi cation Training Test Automation Engineer Masters Program

Microsoft Power BI Training Post-Graduate Program in Arti cial Intelligence & Machine Learning

Online Java Course and Training Post-Graduate Program in Big Data Engineering

Python Certi cation Course

COMPANY WORK WITH US

About us Careers

News & Media Become an Instructor

Reviews Become an A liate

Contact us Become a Partner

Blog Hire from Edureka

Community
DOWNLOAD APP
Sitemap

×
Blog Sitemap

Community Sitemap Subscribe to our Newsletter, and get personalized recommendations.


Webinars
Sign up with Google

CATEGORIES 

CATEGORIES
Signup with Facebook
 
FREE WEBINAR
Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 7/8
07/05/2021 Understanding the Kubernetes Architecture with a Use-Case | Edureka

Cloud Computing DevOps Big Data Data Science BI and Visualization Programming & Frameworks Software Testing

Project Management and Methodologies Robotic Process Automation Frontend Development Data Warehousing and ETL Arti cial Intelligence

Blockchain Databases Cyber Security Mobile Development Operating Systems Architecture & Design Patterns Digital Marketing

TRENDING BLOG ARTICLES 

TRENDING BLOG ARTICLES


Selenium tutorial Selenium interview questions Java tutorial What is HTML Java interview questions PHP tutorial JavaScript interview questions

Spring tutorial PHP interview questions Inheritance in Java Polymorphism in Java Spring interview questions Pointers in C Linux commands

Android tutorial JavaScript tutorial jQuery tutorial SQL interview questions MySQL tutorial Machine learning tutorial Python tutorial

What is machine learning Ethical hacking tutorial SQL injection AWS certi cation career opportunities AWS tutorial What Is cloud computing

What is blockchain Hadoop tutorial What is arti cial intelligence Node Tutorial Collections in Java Exception handling in java

Python Programming Language Python interview questions Multithreading in Java ReactJS Tutorial Data Science vs Big Data vs Data Analyt…

Software Testing Interview Questions R Tutorial Java Programs JavaScript Reserved Words and Keywor… Implement thread.yield() in Java: Exam…

Implement Optical Character Recogniti… All you Need to Know About Implemen…

© 2021 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved. Terms & Conditions    

Legal & Privacy

"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of
MongoDB, Inc.

Subscribe to our Newsletter, and get personalized recommendations.


×
Sign up with Google

Signup with Facebook


 
FREE WEBINAR
Already have an account? Sign in.
Kubernetes Tutorial in 60 Minutes
https://www.edureka.co/blog/kubernetes-architecture/ 8/8

You might also like