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の基礎の基礎(デモ編)
Search
Satoru Takeuchi
PRO
September 11, 2021
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Kubernetesの基礎の基礎(デモ編)
以下動画のテキストです。
https://youtu.be/oe6bUfvJ_u4
Satoru Takeuchi
PRO
September 11, 2021
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
70
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
95
あなたの知らないバージョン命名規則
sat
PRO
3
910
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
64
Machine Check Exception
sat
PRO
2
67
バイナリダンプの模様を読む
sat
PRO
0
91
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
89
114-ファイルのshallow_copy.pdf
sat
PRO
2
58
113-Btrfsのスナップショット.pdf
sat
PRO
0
41
Other Decks in Technology
See All in Technology
認知負荷を吸収し、プロダクトをまたぐPR Preview基盤の設計事例
taiki45
2
130
時うどん〜Socket.getifaddrsで学ぶネットワーク編 / Tokiudon: The Socket.getifaddrs Edition
coe401_
4
260
Making AI Agents Safe and Fast- Jev, Obsidian, and the Meta-Harness
x5gtrn
PRO
0
130
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
1.4k
あけおめLINE 傾向とその対策
nasa9084
0
310
AIエージェントの自己改善をどう設計するか / How to Design Self-Improvement for AI Agents
22mi
26
17k
積み重なった技術負債への挑戦 〜初手としての全社ゴト化〜
techtekt
PRO
0
1.6k
Oracle Cloud Network Path Analyzerを試してみた/I Tried Out Oracle Cloud Network Path Analyzer
masakiokuda
1
110
人にやさしく、AIにやさしく、書き手を選ばないIaCのガードレール再考 / Rethinking IaC Guardrails for Humans and AI Alike
kohbis
3
540
aws-iot-platform-architecture-use-cases.pdf
ma2shita
0
600
Claude Codeを「使うほど育つ」AI秘書にするノウハウ
minorun365
PRO
33
31k
GoのInterface内部構造から学ぶ!最高パフォーマンスを出すコード設計
yappli_developers
1
280
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
710
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
How to Ace a Technical Interview
jacobian
281
24k
Designing for humans not robots
tammielis
254
26k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.9k
Producing Creativity
orderedlist
PRO
348
41k
Music & Morning Musume
bryan
48
7.4k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
290
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Transcript
Kubernetesの基礎の基礎(デモ編) Sep, 11st, 2021 Satoru Takeuchi twitter: satoru_takeuchi
デモの内容 1. Kindというコマンドを使ってK8sクラスタを作る 2. ユーザがDeploymentのマニフェストをapply 3. しばらくしてからK8sがその後に色々やってくれたことを確認 ◦ Deploymentリソースの作成 ◦
Replicasetリソースの作成 ◦ replicasフィールドの値だけPodリソースを作成 ◦ K8sがPodリソースに対応するコンテナを実行 4. ユーザがnginxコンテナを殺してもK8sが復活させることを確認 5. ユーザがPodリソースを消してもK8sが復活させることを確認 2
ユーザがkindでk8sクラスタを作る • kind create cluster 3 K8sクラスタ クラスタ 作って
ユーザがDeploymentのマニフェストをapply • kubectl apply nginx.yaml 4 K8sクラスタ アプリのマニフェスト よろしく
K8sがコンテナまで作ってくれる 5 K8sクラスタ ReplicaSetリソース Deploymentリソース Podリソース Podリソース nginxコンテナ nginxコンテナ
ユーザが気まぐれにnginxコンテナを殺す • sudo kill <nginxのmasterプロセスのpid> • kubectl get pod 6
K8sクラスタ ReplicaSetリソース Deploymentリソース Podリソース Podリソース nginxコンテナ nginxコンテナ 死んで
ユーザが気まぐれにnginx Podを殺す • kubectl delete pod nginx-XXX • kubectl get
pod 7 K8sクラスタ ReplicaSetリソース Deploymentリソース Podリソース Podリソース nginxコンテナ nginxコンテナ 死んで
参考サイト • kindの公式ページ ◦ https://github.com/kubernetes-sigs/kind