Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Kubernetes For Developers - Sydney Alt.Net
Search
Hossam Barakat
November 27, 2018
Technology
91
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Kubernetes For Developers - Sydney Alt.Net
Hossam Barakat
November 27, 2018
Transcript
44 slides
Kubernetes for Developers Hossam Barakat Senior Consultant at Readify @hossambarakat_
| www.hossambarakat.net
@hossambarakat_ • What is Kubernetes? • Why Kubernetes? • Kubernetes
Architecture • Kubernetes Building Blocks • Kubernetes in the cloud Agenda
@hossambarakat_ Hardware Host Operating System Application Application Application Container Dependencies
Application Host Operating System Hardware Container Engine Container Container Container Container Hardware Host Operating System Virtual Machine Guest OS Application Virtual Machine Guest OS Application Hypervisor
@hossambarakat_ What is Docker?
@hossambarakat_ The application is deployed to production
@hossambarakat_ Then the application went viral
@hossambarakat_ Containers bring scalability challenges!
@hossambarakat_ Container orchestration platforms to rescue
@hossambarakat_ • Service discovery • Scaling • Health monitoring •
Failover • Networking • Scheduling • Coordinated app upgrades Container Orchestration
@hossambarakat_ Kubernetes
@hossambarakat_ • Self-healing • Horizontal scaling • Service discovery and
load balancing • Automated rollouts and rollbacks • Secret and configuration management • Storage orchestration • Automatic binpacking • Batch execution Why Kubernetes?
@hossambarakat_ Why do we use K8s instead of Kubernetes? Kubernetes
8 K8s
@hossambarakat_ Kubernetes Architecture Master Worker Worker Client Worker Cluster
@hossambarakat_ Kubernetes Architecture Master API Server Controller Manager Scheduler Worker
Kubelet Container Runtime UI (Dashboard) CLI (Kubectl) Other Client(s) Container Container Cluster
@hossambarakat_ • Localhost installation (Minikube, Docker For Desktop) • On-Premise
Installation (VMs, Bare Metal) • Cloud (Google, Azure, AWS,…) Installing Kubernetes
@hossambarakat_ ASP.NET App On Kubernetes ASP.NET Application
@hossambarakat_ ASP.NET App On Kubernetes ASP.NET Application ASP.NET Application ASP.NET
Application
@hossambarakat_ Pods
@hossambarakat_ Pods Pod
@hossambarakat_ Pods Scaling Pod Pod
@hossambarakat_
@hossambarakat_ But wait… what happens if the pod dies?
@hossambarakat_ ReplicaSets Pod ReplicaSet Pod
@hossambarakat_ ReplicaSets Master Worker 1 Worker 2 Pod 1 Pod
2 Worker 3 Pod 2
@hossambarakat_ Labels Pod
@hossambarakat_
@hossambarakat_ Deployment ReplicaSet Deployment Pod Pod
@hossambarakat_ Deployment Rollout Deployment ReplicaSet V2 Pod Pod ReplicaSet V1
Pod Pod
@hossambarakat_
@hossambarakat_ Connecting to Pods 10.0.0.1 DB Pod A 10.0.0.2 DB
Pod B ASP.NET Pod
@hossambarakat_ Service 10.0.0.2 Pod B 10.0.0.3 Pod C IP: 10.0.0.30
DNS: myservice Service 10.0.0.1 Pod A
@hossambarakat_ Service 10.0.0.1 DB Pod A ASP.NET Pod IP: 10.0.0.30
DNS: myservice Service
@hossambarakat_ Service IP: 10.0.0.30 DNS: tasks-app-svc Service IP: 10.0.0.90 DNS:
mssql-service Service 10.0.0.1 Pod 10.0.0.1 Pod 10.0.0.1 Pod
@hossambarakat_
@hossambarakat_ Persistent Volume
@hossambarakat_ Persistent Volume
@hossambarakat_ Persistent Volume
@hossambarakat_
@hossambarakat_ Kubernetes in the cloud
Azure AKS $ az aks create -g myResourceGroup -n myCluster
--generate-ssh-keys $ az aks get-credentials -g myResourceGroup -n myCluster $ kubectl get nodes $ az aks scale -g myResourceGroup -n myCluster --node-count 6
@hossambarakat_ • Kubernetes Architecture • Deploy application using different workloads
• Kubernetes in the cloud Summary
@hossambarakat_ • https://github.com/hossambarakat/TaskList • Introduction to Kubernetes (edX) • Learn
Kubernetes using Interactive Hands-on Scenarios (Katacoda) • https://kubernetes.io/docs/ Resources
@hossambarakat_ Questions?
Thanks Hossam Barakat @hossambarakat_ www.hossambarakat.net
More Decks by Hossam Barakat
See All by Hossam Barakat
Build Your Cloud Infrastructure as Code With .Net Core - Build Stuff
hossambarakat
0
110
Kubernetes Blue-Green Deployment Made Easy with Argo Rollouts - ADDO
hossambarakat
0
180
Build Your Azure Infrastructure as Code With .NET Core - Azure Day
hossambarakat
0
63
Build Your Azure Infrastructure as Code With .Net Core - Global Azure 2021
hossambarakat
0
80
Practical Domain-Driven Design with EF Core - NDC London 2021
hossambarakat
0
280
Build Your Cloud Infrastructure as Code With .Net Core - ADDO 2020
hossambarakat
0
180
Practical Domain Driven Design With EFCore - NDC Sydney 2020
hossambarakat
0
160
Build Your Cloud Infrastructure as Code With .Net Core - NDC Porto 2020
hossambarakat
2
190
Kubernetes for Developers - All Day DevOps
hossambarakat
2
200
Other Decks in Technology
See All in Technology
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
380
Kansai WordPress Meetup@大阪『ブロックテーマを作る上で知っておくべきこと
torounit
0
250
AWS基盤改善を支える 私たちの理念と行動指針
kentosuzuki
0
250
人間+AIを「チーム」としてプロセスを再設計する
littlehands
4
3.5k
プロダクションコードにおける encoding/json から encoding/json/v2 へのスムーズな移行
sansantech
PRO
1
450
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
250
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
410
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
480
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
460
AI対話型分析を作成し、リリースするまでの話 / The Road to Release: Buiding AI Conversational Analytics
yappli_developers
0
170
アラートを見直していたら営業組織への理解にちょっとだけ繋がった話
z63d
1
210
設計手法を「道具」として使いこなすために
a_suenami
4
740
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.4k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
600
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
530
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
Ruling the World: When Life Gets Gamed
codingconduct
0
440
The SEO Collaboration Effect
kristinabergwall1
1
620
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
The Cost Of JavaScript in 2023
addyosmani
56
10k