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
Search
Nihara Thomas
June 07, 2018
Technology
49
0
Share
Kubernetes
Slides from the Kubernetes talk at OC Python - 6/5/2018
Nihara Thomas
June 07, 2018
Other Decks in Technology
See All in Technology
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
180
コミュニティ・勉強会を作るのは目的じゃない
ohmori_yusuke
0
270
AI時代における技術的負債への取り組み
codenote
1
1.9k
Choose your own adventure in agentic design patterns
glaforge
0
160
Route 53 Global Resolver で高額課金発生!
otanikohei2023
0
130
AI時代のガードレールとしてのAPIガバナンス
nagix
0
320
Agents CLI と Gemini Enterprise Agent Platform で マルチエージェント開発が楽しくなる!
kaz1437
0
180
Scovilleモバイルエンジニア募集中.pdf
julienrudin
0
130
目的ファーストのハーネス設計 ~ハーネスの変更容易性を高めるための優先順位~
gotalab555
9
3.1k
AIでAIをテストする - 音声AIエージェントの品質保証戦略
morix1500
1
150
No Types Needed, Just Callable Method Check
dak2
1
2.3k
基盤を育てる 外部SaaS連携の運用
gamonges_dresscode
1
120
Featured
See All Featured
For a Future-Friendly Web
brad_frost
183
10k
The Pragmatic Product Professional
lauravandoore
37
7.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
WCS-LA-2024
lcolladotor
0
550
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Six Lessons from altMBA
skipperchong
29
4.2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
A designer walks into a library…
pauljervisheath
211
24k
Done Done
chrislema
186
16k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
Transcript
Kubernetes OC Python June 5th 2018
Introduction - Nihara Thomas
Agenda • Kubernetes Intro • Why Kubernetes? • Kubernetes concepts
• How you can start using Kubernetes • Demo • Resources • Q&A
None
What now? Kubernetes is an open-source system for automating deployment,
scaling, and management of containerized applications. K8s == Kubernetes
But what’s the problem? • Multi-container, multi-host applications • High
Availability • Scalability • Ease of Deployment
Solution... Container Orchestration frameworks Cluster Management Scheduling Containers Service Discovery
Load Balancing Crash Recovery
And Kubernetes helps how? • Open source • Cloud Service
Provider agnostic • Easy Upgrades and Rollbacks • Self-healing • Horizontal Scaling • Service Discovery and Load Balancing
Cool… so what do I need to know?
K8s Architecture
Kubernetes Objects • Persistent entities in the K8s system •
Represent the state of your system • You create it, K8s makes sure it’s always there
K8s Objects - Namespace • Help divide cluster resources •
Provide scope for names - isolation and security
K8s Objects - Deployment • Single instance of an application
in the K8s system • Specifies containers that need to be run • Container Image and tag • Desired number of replicas
K8s Objects - Replica Set • Ensures that specified number
of pods are running at any given time • Used by deployment to orchestrate pod creation, deletion and updates
K8s Objects - Pod • Basic building block of K8s
• Encapsulates a container (or multiple containers) • Defines required storage resources • Specifications on how the container(s) should run
Deployment → ReplicaSet → Pod
K8s Objects - Service • Abstraction that defines a set
of pods and policies by which they can be accessed
K8s Objects - Volume • Directory with (or without data)
that is accessible to the container • Explicit lifetime - same as that of the Pod • Data persists across container restarts
K8s Objects - DaemonSet • Ensures that a Pod is
run on all K8s nodes • Use case: ◦ Logs collection daemon such as FluentD
K8s Objects - Job • K8s Cron • Job creates
a pod(s) and ensures that it runs to completion ◦ No image ◦ Can run a command directly ◦ Restarts pod in case of failure ◦ # of successful completions desired can be specified
Interacting with K8s Objects • K8s API directly • Kubectl
→ CLI utility that calls the K8s api for you
Try Kubernetes • Minikube - local K8s cluster ◦ minikube
start • Deploy K8s cluster on a CSP ◦ K8s the Hard Way - Kelsey Hightower • Self-hosted K8s
Let’s see K8s at work .... Link to Demo app
Resources • Try Kubernetes • Kubernetes Comic • Official K8s
documentation
Questions?
None