SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
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/

Contenu connexe

Similaire à Kubernetes basics, Nodes, Pods, Containers, Deployments

Kubernetes for Beginners
Kubernetes for BeginnersKubernetes for Beginners
Kubernetes for BeginnersDigitalOcean
 
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.pptxrathnavel194
 
Docker Madison, Introduction to Kubernetes
Docker Madison, Introduction to KubernetesDocker Madison, Introduction to Kubernetes
Docker Madison, Introduction to KubernetesTimothy St. Clair
 
08 - kubernetes.pptx
08 - kubernetes.pptx08 - kubernetes.pptx
08 - kubernetes.pptxRanjithM61
 
Nugwc k8s session-16-march-2021
Nugwc k8s session-16-march-2021Nugwc k8s session-16-march-2021
Nugwc k8s session-16-march-2021Avanti Patil
 
[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 EnvironmentsWSO2
 
First steps with kubernetes
First steps with kubernetesFirst steps with kubernetes
First steps with kubernetesVinícius Kroth
 
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
 
Creating Kubernetes Autoscalers
Creating Kubernetes AutoscalersCreating Kubernetes Autoscalers
Creating Kubernetes AutoscalersJamie Thompson
 
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?Ravendra Singh
 
GCCP JSCOE Session 2
GCCP JSCOE Session 2GCCP JSCOE Session 2
GCCP JSCOE Session 2GDSC
 
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 Kuberneteskloia
 
KubernetesPPT.pptx
KubernetesPPT.pptxKubernetesPPT.pptx
KubernetesPPT.pptxRyuzaki360
 
Cloud technology with practical knowledge
Cloud technology with practical knowledgeCloud technology with practical knowledge
Cloud technology with practical knowledgeAnshikaNigam8
 
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...Jelastic Multi-Cloud PaaS
 

Similaire à 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...
 

Dernier

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 AutomationSafe Software
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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 Servicegiselly40
 
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 Nanonetsnaman860154
 
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 MenDelhi Call girls
 
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.pdfEnterprise Knowledge
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
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...Igalia
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
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.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Dernier (20)

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
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
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
 
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
 
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
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
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...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

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.