SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler 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/

Mais conteúdo relacionado

Semelhante 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
 

Semelhante 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

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 slidevu2urc
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
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 productivityPrincipled Technologies
 
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 Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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
 
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
 
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
 
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
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Último (20)

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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
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
 
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...
 
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
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

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.