SlideShare uma empresa Scribd logo
1 de 42
Baixar para ler offline
@Laura_Morillo
Docker &
Kubernetes
Simplifying developer’s life
@Laura_Morillo@Laura_Morillo
● Twitter: @laura_morillo
● GDG Madrid Organizer, WTM Lead
● Startup lover.
● Backend developer at Seedtag.
● Google Developer Expert (Cloud)
● +10 years working with different
technologies.
@Laura_Morillo
@Laura_Morillo
Node.js
@Laura_Morillo
Node.js
@Laura_Morillo
Docker OOP Simile
Image
Container
Class
Instance
@Laura_Morillo
Dockerfile
@Laura_Morillo
Dockerfile
@Laura_Morillo
Dockerfile
Docker Repository
(images)
@Laura_Morillo
Node.js
Container for Staging Container for Production
Dockerfile
Docker Repository
(images)
(containers)
@Laura_Morillo
Node.js
Redis
Loadbalancer
Node.js
Loadbalancer
Node.js
Redis Redis
@Laura_Morillo
Pokemon Go traffic
@Laura_Morillo
@Laura_Morillo
Kubernetes: cluster
Cluster
Node 1
(VM or physical
machine)
Node 2
(VM or physical
machine)
Node 3
(VM or physical
machine)
@Laura_Morillo@Laura_Morillo
Pods
Node.js
Redis
● Smallest unit
● Contains one or more containers
● Volumes for persistence
● Ephemeral entities
● One IP per pod
● You shouldn’t create them
directly
Volumes
@Laura_Morillo@Laura_Morillo
Deployments
● Drive current state toward
desired state
V1
V1
@Laura_Morillo
Deployments
@Laura_Morillo
Deployments
kubectl apply -f my-deployment.yaml
@Laura_Morillo
Deployments
Cluster
Node 1
Node 2
Node 3
@Laura_Morillo
Deployments
Redis
V1
My
Image
V1
Redis
V1
My
Image
V1
Cluster
Node 1
Node 2
Node 3
@Laura_Morillo
Deployments
Redis
V1
My
Image
V1
Redis
V1
My
Image
V1
Cluster
Node 1
Node 2
Node 3
@Laura_Morillo@Laura_Morillo
Services
● Defines a logical set of pods
and a policy to access them
Redis
V1
My
Image
V1
Redis
V1
My
Image
V1
Nginx V1
Service
@Laura_Morillo
Services: ClusterIP
@Laura_Morillo
Services: ClusterIP
Redis
V1
My
Image
V1
Redis
V1
My
Image
V1
Cluster
Node 1
Node 2
Nginx
V1
my-node-app-service
nginx-service
@Laura_Morillo
Services: ClusterIP
Redis
V1
My
Image
V1
Redis
V1
My
Image
V1
Cluster
Node 1
Node 2
Nginx
V1
Error!
my-node-app-service
nginx-service
@Laura_Morillo
Services: LoadBalancer
Public IP:
Ej: 123.45.678.9
@Laura_Morillo
Services: LoadBalancer
Redis
V1
My
Image
V1
Redis
V1
My
Image
V1
Cluster
Node 1
Node 2
Nginx
V1
IP: 123.45.678.9
my-node-app-service
nginx-service
@Laura_Morillo
Changes????
@Laura_Morillo@Laura_Morillo
Deployments
● Controls new versions
● Rollback to previous versions
● Update strategy
V1
V2
Deployment
@Laura_Morillo
Deployments: RollingUpdate
@Laura_Morillo
Deployments: RollingUpdate
Redis V1
My Image V1
Redis V1
My Image V1
@Laura_Morillo
Deployments: RollingUpdate
@Laura_Morillo
Deployment: RollingUpdate
Redis
V1
My Image
V1
Redis
V1
My Image
V1
@Laura_Morillo
Deployment: RollingUpdate
Redis
V1
My Image
V1
Redis
V1
My Image
V1
Redis
V1
My Image
V2
@Laura_Morillo
Deployment: RollingUpdate
Redis
V1
My Image
V1
Redis
V1
My Image
V1
Redis
V1
My Image
V2
@Laura_Morillo
Deployment: RollingUpdate
Redis
V1
My Image
V1
Redis
V1
My Image
V1
Redis
V1
My Image
V2
Redis
V1
My Image
V2
@Laura_Morillo
Deployment: RollingUpdate
Redis
V1
My Image
V1
Redis
V1
My Image
V1
Redis
V1
My Image
V2
Redis
V1
My Image
V2
@Laura_Morillo
Pokemon Go traffic
@Laura_Morillo@Laura_Morillo
HorizontalPodAutoscaler
● Scales the number of pods
from a deployment
● At the moment, only based
on the CPU utilizationRedis
V1
My
Image
V2
HorizontalPodAutoescaler: From 2 to 10
Redis
V1
My
Image
V2
Min 2
Redis
V1
My
Image
V2
Max 10
1 2 10
@Laura_Morillo
HorizontalPodAutoscaler
@Laura_Morillo
Summary
● Kubernetes is a cluster manager that helps us to:
○ Deploy our applications from Docker containers
○ Structure our application with microservices
○ Connect the different microservices
○ Provide external access to our services
○ Scale our infrastructure when we need it
○ And more!
@Laura_Morillo
@laura_morillo
laura.morillovelarde@gmail.com
We are hiring at seedtag!

Mais conteúdo relacionado

Mais procurados

GUI Programming with Perl / GTK
GUI Programming with Perl / GTKGUI Programming with Perl / GTK
GUI Programming with Perl / GTK
Anuradha Weeraman
 

Mais procurados (20)

Golang taipei #45 10th birthday
Golang taipei #45 10th birthdayGolang taipei #45 10th birthday
Golang taipei #45 10th birthday
 
welcome to gopherlabs - why go (golang)?
welcome to gopherlabs - why go (golang)?welcome to gopherlabs - why go (golang)?
welcome to gopherlabs - why go (golang)?
 
GUI Programming with Perl / GTK
GUI Programming with Perl / GTKGUI Programming with Perl / GTK
GUI Programming with Perl / GTK
 
Kotlin react bkk 3.0.0
Kotlin react bkk 3.0.0Kotlin react bkk 3.0.0
Kotlin react bkk 3.0.0
 
Me interessei por Xamarin, e agora?
Me interessei por Xamarin, e agora?Me interessei por Xamarin, e agora?
Me interessei por Xamarin, e agora?
 
git - the stupid content tracker
git - the stupid content trackergit - the stupid content tracker
git - the stupid content tracker
 
Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
Git training with Devaamo
Git training with DevaamoGit training with Devaamo
Git training with Devaamo
 
Git kelvin
Git   kelvinGit   kelvin
Git kelvin
 
Git & git hub
Git & git hubGit & git hub
Git & git hub
 
Open source
Open sourceOpen source
Open source
 
Kotlin tech talk
Kotlin tech talkKotlin tech talk
Kotlin tech talk
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow
 
Helios in Action: Git at Eclipse
Helios in Action: Git at EclipseHelios in Action: Git at Eclipse
Helios in Action: Git at Eclipse
 
Git: a tool for wizards
Git: a tool for wizardsGit: a tool for wizards
Git: a tool for wizards
 
Decision making - for loop , nested loop ,if-else statements , switch in goph...
Decision making - for loop , nested loop ,if-else statements , switch in goph...Decision making - for loop , nested loop ,if-else statements , switch in goph...
Decision making - for loop , nested loop ,if-else statements , switch in goph...
 
Golang for PHP programmers: A practical introduction
Golang for PHP programmers: A practical introductionGolang for PHP programmers: A practical introduction
Golang for PHP programmers: A practical introduction
 
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIsHTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
 
Github
GithubGithub
Github
 
Git basics
Git basicsGit basics
Git basics
 

Semelhante a Docker&kubernetes

Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil TayarDocker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Applitools
 
Kubernetes IN Docker: Next level inception - Paris Container Day 2019
Kubernetes IN Docker: Next level inception - Paris Container Day 2019Kubernetes IN Docker: Next level inception - Paris Container Day 2019
Kubernetes IN Docker: Next level inception - Paris Container Day 2019
Horgix
 

Semelhante a Docker&kubernetes (20)

Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil TayarDocker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
 
Introduction to docker and docker compose
Introduction to docker and docker composeIntroduction to docker and docker compose
Introduction to docker and docker compose
 
MiniSPA2022_Build_and_Test_Cloud_Infrastructure_using_Terraform_Modules.pdf
MiniSPA2022_Build_and_Test_Cloud_Infrastructure_using_Terraform_Modules.pdfMiniSPA2022_Build_and_Test_Cloud_Infrastructure_using_Terraform_Modules.pdf
MiniSPA2022_Build_and_Test_Cloud_Infrastructure_using_Terraform_Modules.pdf
 
Building Instruqt, a scalable learning platform
Building Instruqt, a scalable learning platformBuilding Instruqt, a scalable learning platform
Building Instruqt, a scalable learning platform
 
Kubernetes IN Docker: Next level inception - Paris Container Day 2019
Kubernetes IN Docker: Next level inception - Paris Container Day 2019Kubernetes IN Docker: Next level inception - Paris Container Day 2019
Kubernetes IN Docker: Next level inception - Paris Container Day 2019
 
PyCon Israel - Launch Jupyter to the Cloud
PyCon Israel - Launch Jupyter to the CloudPyCon Israel - Launch Jupyter to the Cloud
PyCon Israel - Launch Jupyter to the Cloud
 
Behind the scenes with Docker volume plugins
Behind the scenes with Docker volume pluginsBehind the scenes with Docker volume plugins
Behind the scenes with Docker volume plugins
 
Docker Birtday #5
Docker Birtday #5Docker Birtday #5
Docker Birtday #5
 
CodiLime Tech Talk - Dawid Trzebiatowski i Wojciech Urbański: Opening the Flo...
CodiLime Tech Talk - Dawid Trzebiatowski i Wojciech Urbański: Opening the Flo...CodiLime Tech Talk - Dawid Trzebiatowski i Wojciech Urbański: Opening the Flo...
CodiLime Tech Talk - Dawid Trzebiatowski i Wojciech Urbański: Opening the Flo...
 
You Want to Kubernetes? You MUST Know Containers!
You Want to Kubernetes? You MUST Know Containers!You Want to Kubernetes? You MUST Know Containers!
You Want to Kubernetes? You MUST Know Containers!
 
Build and run applications in a dockerless kubernetes world
Build and run applications in a dockerless kubernetes worldBuild and run applications in a dockerless kubernetes world
Build and run applications in a dockerless kubernetes world
 
Build and run applications in a dockerless kubernetes world - DevConf India 18
Build and run applications in a dockerless kubernetes world - DevConf India 18Build and run applications in a dockerless kubernetes world - DevConf India 18
Build and run applications in a dockerless kubernetes world - DevConf India 18
 
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
 
Dockerize Your Project - GDGBogor
Dockerize Your Project - GDGBogorDockerize Your Project - GDGBogor
Dockerize Your Project - GDGBogor
 
Containers without docker | DevNation Tech Talk
Containers without docker | DevNation Tech TalkContainers without docker | DevNation Tech Talk
Containers without docker | DevNation Tech Talk
 
Kubernetes on GCP
Kubernetes on GCPKubernetes on GCP
Kubernetes on GCP
 
DevAssistant, Docker and You
DevAssistant, Docker and YouDevAssistant, Docker and You
DevAssistant, Docker and You
 
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
 
stackconf 2021 | GitOps: yea or nay?
stackconf 2021 | GitOps: yea or nay?stackconf 2021 | GitOps: yea or nay?
stackconf 2021 | GitOps: yea or nay?
 
Up and Running with Kubernetes
Up and Running with KubernetesUp and Running with Kubernetes
Up and Running with Kubernetes
 

Último

Último (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Docker&kubernetes