Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kubernetes For Developers - Sydney Alt.Net
Search
Hossam Barakat
November 27, 2018
Technology
0
53
Kubernetes For Developers - Sydney Alt.Net
Hossam Barakat
November 27, 2018
Tweet
Share
More Decks by Hossam Barakat
See All by Hossam Barakat
Build Your Cloud Infrastructure as Code With .Net Core - Build Stuff
hossambarakat
0
63
Kubernetes Blue-Green Deployment Made Easy with Argo Rollouts - ADDO
hossambarakat
0
81
Build Your Azure Infrastructure as Code With .NET Core - Azure Day
hossambarakat
0
30
Build Your Azure Infrastructure as Code With .Net Core - Global Azure 2021
hossambarakat
0
45
Practical Domain-Driven Design with EF Core - NDC London 2021
hossambarakat
0
240
Build Your Cloud Infrastructure as Code With .Net Core - ADDO 2020
hossambarakat
0
120
Practical Domain Driven Design With EFCore - NDC Sydney 2020
hossambarakat
0
130
Build Your Cloud Infrastructure as Code With .Net Core - NDC Porto 2020
hossambarakat
2
150
Kubernetes for Developers - All Day DevOps
hossambarakat
2
170
Other Decks in Technology
See All in Technology
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
530
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
終了の危機にあった15年続くWebサービスを全力で存続させる - phpcon2024
yositosi
10
8.1k
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
13
3.7k
2024年にチャレンジしたことを振り返るぞ
mitchan
0
140
DevOps視点でAWS re:invent2024の新サービス・アプデを振り返ってみた
oshanqq
0
180
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
190
kargoの魅力について伝える
magisystem0408
0
210
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
770
オプトインカメラ:UWB測位を応用したオプトイン型のカメラ計測
matthewlujp
0
170
DUSt3R, MASt3R, MASt3R-SfM にみる3D基盤モデル
spatial_ai_network
2
110
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Producing Creativity
orderedlist
PRO
341
39k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
The Invisible Side of Design
smashingmag
298
50k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Code Review Best Practice
trishagee
65
17k
Into the Great Unknown - MozCon
thekraken
33
1.5k
Faster Mobile Websites
deanohume
305
30k
Transcript
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