SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
KUBERNETES BEI CHEFKOCH
BONN AGILE MEETUP
KUBERNETES BEI CHEFKOCH
WHO'S THAT GUY?
▸ Pascal Cremer
▸ Senior Developer bei
Chefkoch (September 2015)
▸ DevOps by Heart
▸ Docker seit 2013, Kubernetes
seit 2015
▸ @b00igzm
KUBERNETES BEI CHEFKOCH
MICROSERVICES BEI CHEFKOCH
▸ Chefkoch: Europas größte Internet-Plattform und Community rund ums
Thema kochen
▸ Von 8 Kollegen in der IT Ende 2014 zu ca. 50 Kollegen im Mai 2016
▸ 6 agile, autonome Entwickler-Teams (Web, Mobile, BI)
▸ Anfang 2015: Modernisierung der alten, monolithischen Architektur hin zu
einer modernen Microservice-orientierten Architektur
▸ Herbst 2015: Realisierung neuer Features ausschließlich als Microservices
mit Docker und Kubernetes
▸ Heute: 15+ Microservices in Produktion auf sieben 

CoreOS Nodes
KUBERNETES!
KUBERNETES BEI CHEFKOCH
WAS IST KUBERNETES?
▸ Open Source Container Cluster Manager
▸ Entwickelt (und "dog fooded") von Google
▸ "Platform for automating deployment, scaling, and operations
of application containers across clusters of hosts"
▸ (Quasi) Bleeding Edge (Version 1.0 im Juli 2015)
▸ kubelet ("Process Watcher"), API-Server + etcd & kubectl (CLI
API-Client)
▸ Container agnostic: Docker, rkt, AppC
Pod
Pod
Pod
my-service
Service
?
my-service
Service
project: my-app
component: web
release: v1
project: my-app
component: web
my-service
my-service
my-app-rc
Replication Controller
KUBERNETES BEI CHEFKOCH
KUBERNETES, THE BASICS
▸ Pods, Services, Labels, Replication Controllers (...)
▸ Pods beinhalten einen oder mehr Container
▸ Container in einem Pod teilen sich eine IP-Adresse, können gemeinsame
Volumens haben und sich über localhost finden
▸ Services bilden das "Frontend" zu einem oder mehr Pods, welche über
Labels selektiert werden
▸ Services können innerhalb von Containern z.B. über skydns gefunden
werden
▸ Replication Controller kümmern sich um die Replikation / Skalierung von
Pods
KUBERNETES BEI CHEFKOCH
KUBERNETES, THE GOOD PARTS
▸ All Power to DevOps!
▸ Neue Umgebungen (Staging, End2End, usw.) können schnell
"hochgezogen" werden
▸ Saubere Isolierung der Microservices durch Verwendung von
Kubernetes Namespaces
▸ Lifecycle Hooks, Readiness/Liveness Probes, Image Pull Policies...
▸ Zero-Downtime Deployments durch Rolling Updates
▸ Einfache Canary Deployments durch die Verwendung von Labels für
Application Pods
my-service
my-app-rc
my-service
my-app-v1-rc my-app-v2-rc
project: my-app
component: web
release: v2
project: my-app
component: web
release: v1
project: my-app
component: web
DEMO TIME!
RAINBOWPOOPIN'UNICORN?
KUBERNETES BEI CHEFKOCH
KUBERNETES, THE BAD PARTS
▸ Steile Lernkurve
▸ Overhead für Entwickler (und Gegenwind vom Product-Management)
▸ Bleeding Edge: Bugs, Breaking Changes, spärliche Dokumentation
und fehlende Features (kubectl wait, volumes-from, Templates)
▸ Nur bedingt als lokale Dev-Umgebung geeignet, da sehr "teuer" in
Sachen Ressourcen (CPU, Memory)
▸ Cluster Updates sind aktuell noch eine größere Herausforderung
▸ "Selbst gestrickte" Lösungen notwendig für z.B. Logging, Monitoring,
verteiltes Dateisystem usw.
FRAGEN?
VIELEN DANK!
DEMO REPO
https://github.com/b00giZm/k8-rolling-demo

Weitere ähnliche Inhalte

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Kubernetes bei Chefkoch (Bonn Agile Meetup, 05/2016)

  • 2. KUBERNETES BEI CHEFKOCH WHO'S THAT GUY? ▸ Pascal Cremer ▸ Senior Developer bei Chefkoch (September 2015) ▸ DevOps by Heart ▸ Docker seit 2013, Kubernetes seit 2015 ▸ @b00igzm
  • 3. KUBERNETES BEI CHEFKOCH MICROSERVICES BEI CHEFKOCH ▸ Chefkoch: Europas größte Internet-Plattform und Community rund ums Thema kochen ▸ Von 8 Kollegen in der IT Ende 2014 zu ca. 50 Kollegen im Mai 2016 ▸ 6 agile, autonome Entwickler-Teams (Web, Mobile, BI) ▸ Anfang 2015: Modernisierung der alten, monolithischen Architektur hin zu einer modernen Microservice-orientierten Architektur ▸ Herbst 2015: Realisierung neuer Features ausschließlich als Microservices mit Docker und Kubernetes ▸ Heute: 15+ Microservices in Produktion auf sieben 
 CoreOS Nodes
  • 5.
  • 6.
  • 7.
  • 8. KUBERNETES BEI CHEFKOCH WAS IST KUBERNETES? ▸ Open Source Container Cluster Manager ▸ Entwickelt (und "dog fooded") von Google ▸ "Platform for automating deployment, scaling, and operations of application containers across clusters of hosts" ▸ (Quasi) Bleeding Edge (Version 1.0 im Juli 2015) ▸ kubelet ("Process Watcher"), API-Server + etcd & kubectl (CLI API-Client) ▸ Container agnostic: Docker, rkt, AppC
  • 9. Pod
  • 10. Pod
  • 11. Pod
  • 16. KUBERNETES BEI CHEFKOCH KUBERNETES, THE BASICS ▸ Pods, Services, Labels, Replication Controllers (...) ▸ Pods beinhalten einen oder mehr Container ▸ Container in einem Pod teilen sich eine IP-Adresse, können gemeinsame Volumens haben und sich über localhost finden ▸ Services bilden das "Frontend" zu einem oder mehr Pods, welche über Labels selektiert werden ▸ Services können innerhalb von Containern z.B. über skydns gefunden werden ▸ Replication Controller kümmern sich um die Replikation / Skalierung von Pods
  • 17. KUBERNETES BEI CHEFKOCH KUBERNETES, THE GOOD PARTS ▸ All Power to DevOps! ▸ Neue Umgebungen (Staging, End2End, usw.) können schnell "hochgezogen" werden ▸ Saubere Isolierung der Microservices durch Verwendung von Kubernetes Namespaces ▸ Lifecycle Hooks, Readiness/Liveness Probes, Image Pull Policies... ▸ Zero-Downtime Deployments durch Rolling Updates ▸ Einfache Canary Deployments durch die Verwendung von Labels für Application Pods
  • 18.
  • 20. my-service my-app-v1-rc my-app-v2-rc project: my-app component: web release: v2 project: my-app component: web release: v1 project: my-app component: web
  • 23.
  • 24. KUBERNETES BEI CHEFKOCH KUBERNETES, THE BAD PARTS ▸ Steile Lernkurve ▸ Overhead für Entwickler (und Gegenwind vom Product-Management) ▸ Bleeding Edge: Bugs, Breaking Changes, spärliche Dokumentation und fehlende Features (kubectl wait, volumes-from, Templates) ▸ Nur bedingt als lokale Dev-Umgebung geeignet, da sehr "teuer" in Sachen Ressourcen (CPU, Memory) ▸ Cluster Updates sind aktuell noch eine größere Herausforderung ▸ "Selbst gestrickte" Lösungen notwendig für z.B. Logging, Monitoring, verteiltes Dateisystem usw.
  • 25.
  • 26.