SlideShare a Scribd company logo
1 of 25
Download to read offline
What is Kubernetes (K8s)?
● Open-source container orchestration tool
● Helps us manage containerized applications
● Developed by Google
What problems does Kubernetes solve?
Monolith to Microservices?
Increased Usage of Containers
● According to the Annual Flexera State of the Cloud Report from 2021, 53% of
companies use Docker containers.
● Gartner's analysts predict that by 2022, more than 75% of global
organizations running containerized applications
Why Kubernetes is Special?
Kubernetes Offers
● Scalability or high performance
● Availability or no downtime
● Disaster recovery or backup, restore
Kubernetes Popularity
● According to the 2022 CNCF Cloud Native Landscape Survey, over 69% of
organizations are using Kubernetes in production,
● The number was 58% in 2021 and 30% in 2018.
Facts about Kubernetes Popularity
● World's leading technology companies, such as Amazon, Google, and
Microsoft, are using Kubernetes to deploy their applications.
● Over 50% of Fortune 100 companies are using Kubernetes in production.
● Kubernetes has a commanding 92% market share among container
orchestration tools
● There are now over 3.9 million developers worldwide who use Kubernetes.
Kubernetes Basic Architecture
Master Node
● API Server: Entry point for interacting with the cluster.
● Etcd: Stores the cluster's desired state configuration and current state data.
● Scheduler: Selects the most suitable node for each pod based on various
factors like resource availability and pod requirements.
● Controller Manager: Maintains the desired state of the cluster by running
various controllers that manage deployments, replica sets, nodes, and more.
Facts about Master Node
● It can be compared to the control plane or the brain of the cluster.
● It is a single point of control for managing the entire cluster, simplifying
administration and configuration.
● It continuously comparing the current state with the desired state
● It automates tasks like scheduling, scaling, and healing, reducing manual
intervention and improving efficiency
● It uses less resources than worker nodes
● It recommended to have more than one master node on production
Worker Nodes
● Kubelet: An agent that runs on each worker node. Manages pod lifecycle
events (start, stop, restart)
● Container Runtime: Directly on the worker node's operating system and
handles container lifecycles
● kube-proxy: Manages pod networking. Routes traffic to pods based on
service definitions.
Facts about Worker Nodes
● They are the workhorses of the cluster.
● If master node is the brain then worker nodes are the muscles, executing the
work.
● The performance of the applications directly depends on the capabilities of
the worker nodes.
Pods & Containers
Pods & Containers
● A pod is the fundamental unit for deploying and managing applications
● It's like a little pod of peas, where each pea represents a container
● All the containers in a pod share the same storage and network resources
● Kubernetes treats the entire pod as a single unit
● Pods are ephemeral
Deployments
● A deployment is a Kubernetes object that specifies the desired state of your
application, including:
○ The container image to use.
○ The number of replicas (instances) to run.
○ Resource requests and limits for each container.
○ Environment variables and other configuration.
● Deployments are commonly used for stateless applications
● Deployments manage ReplicaSets
● Kubernetes ensures that the actual state of your application converges to the
desired state you defined
Deployments Sample
Horizontal vs Vertical Scaling
Horizontal Scaling
● Increases or decreases the number of pod replicas (instances) running your
application
● Suitable for stateless applications with predictable resource demands
Methods:
● Horizontal Pod Autoscaler (HPA): Automatically scales pods based on CPU,
memory, or custom metrics.
● Manual Scaling: You manually adjust the number of pod replicas as needed.
Vertical Scaling
● Increases or decreases the resources allocated to individual pods.
● Useful for stateful applications or those with fluctuating resource needs.
Methods:
● Vertical Pod Autoscaler (VPA): Automatically adjusts CPU and memory
requests/limits for pods based on their usage.
● Manual Scaling: You manually adjust pod resource requests/limits.
Thank you.
References
https://blog.palark.com/kubernetes-and-containers-market-trends-2021/
https://www.cncf.io/reports/cncf-annual-survey-2022/
https://www.ibm.com/blog/top-7-benefits-of-kubernetes/
https://humalect.com/blog/kubernetes-statistics
https://kubernetes.io/docs/concepts/workloads/controllers/deployment/

More Related Content

Similar to Kubernetes basics, Nodes, Pods, Containers, Deployments

Kubernetes for Beginners
Kubernetes for BeginnersKubernetes for Beginners
Kubernetes for Beginners
DigitalOcean
 
Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...
Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...
Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...
Flink Forward
 

Similar to Kubernetes basics, Nodes, Pods, Containers, Deployments (20)

Kubernetes for Beginners
Kubernetes for BeginnersKubernetes for Beginners
Kubernetes for Beginners
 
Kubernetes-introduction to kubernetes for beginers.pptx
Kubernetes-introduction to kubernetes for beginers.pptxKubernetes-introduction to kubernetes for beginers.pptx
Kubernetes-introduction to kubernetes for beginers.pptx
 
Intro to Kubernetes
Intro to KubernetesIntro to Kubernetes
Intro to Kubernetes
 
Docker Madison, Introduction to Kubernetes
Docker Madison, Introduction to KubernetesDocker Madison, Introduction to Kubernetes
Docker Madison, Introduction to Kubernetes
 
08 - kubernetes.pptx
08 - kubernetes.pptx08 - kubernetes.pptx
08 - kubernetes.pptx
 
Aks: k8s e azure
Aks:  k8s e azureAks:  k8s e azure
Aks: k8s e azure
 
Nugwc k8s session-16-march-2021
Nugwc k8s session-16-march-2021Nugwc k8s session-16-march-2021
Nugwc k8s session-16-march-2021
 
[WSO2Con Asia 2018] Architecting for Container-native Environments
[WSO2Con Asia 2018] Architecting for Container-native Environments[WSO2Con Asia 2018] Architecting for Container-native Environments
[WSO2Con Asia 2018] Architecting for Container-native Environments
 
First steps with kubernetes
First steps with kubernetesFirst steps with kubernetes
First steps with kubernetes
 
01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx
 
Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...
Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...
Flink Forward San Francisco 2019: Managing Flink on Kubernetes - FlinkK8sOper...
 
Creating Kubernetes Autoscalers
Creating Kubernetes AutoscalersCreating Kubernetes Autoscalers
Creating Kubernetes Autoscalers
 
Kubernetes PPT.pptx
Kubernetes PPT.pptxKubernetes PPT.pptx
Kubernetes PPT.pptx
 
What are the Features & Benefits of Kubernetes?
What are the Features & Benefits of Kubernetes?What are the Features & Benefits of Kubernetes?
What are the Features & Benefits of Kubernetes?
 
GCCP JSCOE Session 2
GCCP JSCOE Session 2GCCP JSCOE Session 2
GCCP JSCOE Session 2
 
Container Orchestration using kubernetes
Container Orchestration using kubernetesContainer Orchestration using kubernetes
Container Orchestration using kubernetes
 
Ultimate Guide to Microservice Architecture on Kubernetes
Ultimate Guide to Microservice Architecture on KubernetesUltimate Guide to Microservice Architecture on Kubernetes
Ultimate Guide to Microservice Architecture on Kubernetes
 
KubernetesPPT.pptx
KubernetesPPT.pptxKubernetesPPT.pptx
KubernetesPPT.pptx
 
Cloud technology with practical knowledge
Cloud technology with practical knowledgeCloud technology with practical knowledge
Cloud technology with practical knowledge
 
Running Projects in Application Containers, System Containers & VMs - Jelasti...
Running Projects in Application Containers, System Containers & VMs - Jelasti...Running Projects in Application Containers, System Containers & VMs - Jelasti...
Running Projects in Application Containers, System Containers & VMs - Jelasti...
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Kubernetes basics, Nodes, Pods, Containers, Deployments

  • 1. What is Kubernetes (K8s)? ● Open-source container orchestration tool ● Helps us manage containerized applications ● Developed by Google
  • 2. What problems does Kubernetes solve?
  • 4. Increased Usage of Containers ● According to the Annual Flexera State of the Cloud Report from 2021, 53% of companies use Docker containers. ● Gartner's analysts predict that by 2022, more than 75% of global organizations running containerized applications
  • 5.
  • 6. Why Kubernetes is Special?
  • 7. Kubernetes Offers ● Scalability or high performance ● Availability or no downtime ● Disaster recovery or backup, restore
  • 8. Kubernetes Popularity ● According to the 2022 CNCF Cloud Native Landscape Survey, over 69% of organizations are using Kubernetes in production, ● The number was 58% in 2021 and 30% in 2018.
  • 9.
  • 10. Facts about Kubernetes Popularity ● World's leading technology companies, such as Amazon, Google, and Microsoft, are using Kubernetes to deploy their applications. ● Over 50% of Fortune 100 companies are using Kubernetes in production. ● Kubernetes has a commanding 92% market share among container orchestration tools ● There are now over 3.9 million developers worldwide who use Kubernetes.
  • 12.
  • 13. Master Node ● API Server: Entry point for interacting with the cluster. ● Etcd: Stores the cluster's desired state configuration and current state data. ● Scheduler: Selects the most suitable node for each pod based on various factors like resource availability and pod requirements. ● Controller Manager: Maintains the desired state of the cluster by running various controllers that manage deployments, replica sets, nodes, and more.
  • 14. Facts about Master Node ● It can be compared to the control plane or the brain of the cluster. ● It is a single point of control for managing the entire cluster, simplifying administration and configuration. ● It continuously comparing the current state with the desired state ● It automates tasks like scheduling, scaling, and healing, reducing manual intervention and improving efficiency ● It uses less resources than worker nodes ● It recommended to have more than one master node on production
  • 15. Worker Nodes ● Kubelet: An agent that runs on each worker node. Manages pod lifecycle events (start, stop, restart) ● Container Runtime: Directly on the worker node's operating system and handles container lifecycles ● kube-proxy: Manages pod networking. Routes traffic to pods based on service definitions.
  • 16. Facts about Worker Nodes ● They are the workhorses of the cluster. ● If master node is the brain then worker nodes are the muscles, executing the work. ● The performance of the applications directly depends on the capabilities of the worker nodes.
  • 18. Pods & Containers ● A pod is the fundamental unit for deploying and managing applications ● It's like a little pod of peas, where each pea represents a container ● All the containers in a pod share the same storage and network resources ● Kubernetes treats the entire pod as a single unit ● Pods are ephemeral
  • 19. Deployments ● A deployment is a Kubernetes object that specifies the desired state of your application, including: ○ The container image to use. ○ The number of replicas (instances) to run. ○ Resource requests and limits for each container. ○ Environment variables and other configuration. ● Deployments are commonly used for stateless applications ● Deployments manage ReplicaSets ● Kubernetes ensures that the actual state of your application converges to the desired state you defined
  • 22. Horizontal Scaling ● Increases or decreases the number of pod replicas (instances) running your application ● Suitable for stateless applications with predictable resource demands Methods: ● Horizontal Pod Autoscaler (HPA): Automatically scales pods based on CPU, memory, or custom metrics. ● Manual Scaling: You manually adjust the number of pod replicas as needed.
  • 23. Vertical Scaling ● Increases or decreases the resources allocated to individual pods. ● Useful for stateful applications or those with fluctuating resource needs. Methods: ● Vertical Pod Autoscaler (VPA): Automatically adjusts CPU and memory requests/limits for pods based on their usage. ● Manual Scaling: You manually adjust pod resource requests/limits.