SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
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/

Más contenido relacionado

Similar a 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
 

Similar a 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...
 

Último

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
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
 
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
 
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
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Último (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
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...
 
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...
 
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
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
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
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

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.