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
meetup_topic__1.pdf
Search
ry
February 10, 2020
Education
0
690
meetup_topic__1.pdf
Kubernetes Wakaran Tokyo #1にて扱う問題です。
ry
February 10, 2020
Tweet
Share
More Decks by ry
See All by ry
eBPF Tools on Kubernetes part1
ry
0
190
Vault Secrets Operator Tutorial
ry
0
450
KyvernoとRed Hat ACMを用いたマルチクラスターの一元的なポリシー制御
ry
0
910
明日から始められるKyvernoを用いたポリシー制御
ry
3
690
CNDT2022 k8snovice Community introduction
ry
0
110
Policy Engine on Kubernetes
ry
1
1.3k
ConfigMap and Secret
ry
0
310
Policy Manager試してみた!
ry
0
370
Kubernetes APIに Pod内からアクセスしてみた
ry
1
1.6k
Other Decks in Education
See All in Education
開発終了後こそ成長のチャンス!プロダクト運用を見送った先のアクションプラン
ohmori_yusuke
2
190
Ch2_-_Partie_3.pdf
bernhardsvt
0
110
Adobe Express
matleenalaakso
1
7.6k
HTML5 and the Open Web Platform - Lecture 3 - Web Technologies (1019888BNR)
signer
PRO
1
2.6k
Use Cases and Course Review - Lecture 8 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
790
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.8k
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
2.5k
Security, Privacy and Trust - Lecture 11 - Web Technologies (1019888BNR)
signer
PRO
0
2.6k
Lisätty todellisuus opetuksessa
matleenalaakso
1
2.3k
(2024) Couper un gâteau... sans connaître le nombre de convives
mansuy
2
160
Requirements Analysis and Prototyping - Lecture 3 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
850
Unraveling JavaScript Prototypes
debug_mode
0
120
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Agile that works and the tools we love
rasmusluckow
328
21k
4 Signs Your Business is Dying
shpigford
181
21k
How GitHub (no longer) Works
holman
311
140k
Scaling GitHub
holman
458
140k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Docker and Python
trallard
42
3.1k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Transcript
Kubernetes Wakaran Tokyo #1 Discussion Theme
Prerequisite Knowledge
What’s Kubernetes • ίϯςφԽ͞ΕͨΞϓϦέʔγϣϯαʔϏεΛ ཧ͢ΔͨΊͷΦʔϓϯιʔεϓϥοτϑΥʔϜ ϩʔϦϯάΞοϓσʔτ εέʔϦϯά / ΦʔτεέʔϦϯά ίϯςφͷࢮ׆ࢹ
ো࣌ͷηϧϑώʔϦϯά etc…
What’s Container • ಉ͡OS্Ͱ͞ΕͨίϯςφۭؒΛ༻ҙ͠ɺݸʑʹΞϓϦέʔ γϣϯϥΠϒϥϦΛಈ͔͢͜ͱ͕Ͱ͖Δɻ • ΞϓϦέʔγϣϯʹՃ͑ͯɺOS ͱͦͷؔ࿈πʔϧ͕༰ྔʹؚ·ΕΔ VMͱൺֱ͢ΔͱϦιʔε໘Ͱͷܰྔੑɺىಈεϐʔυͷ͞ͳͲ ͷϝϦοτ͕͋Δଞɺϝϯςφϯεͷ؆қԽ༷ʑͳར͕͋Δɻ
ཧαʔό ཧαʔό ϗετOS ϋΠύʔόΠβʔ ԾԽSW ήετOS ήετOS ήετOS ήετOS app app app app app app app ཧαʔό ίϯςφΤϯδϯ VM Container
What’s Pod • KubernetesͰ࡞͓ΑͼཧͰ͖ΔɺσϓϩΠ Մೳͳ࠷খͷίϯϐϡʔςΟϯά୯Ґɻ • 1ͭҎ্ͷίϯςφͰߏ͞ΕΔɻ • Podʹ1ͭͷNic͕༩͑ΒΕɺίϯςφؒͰͦͷ 1ͭͷNicΛڞ༗͢Δɻ
Today’s Topic 1-1. Podͷ࡞ 1-2. Serviceͷ࡞ 1-3. Replicaͷੜ ~ ൃల
~ 2-1. Updateઓུ
Podͷ࡞ ྡͷmanifestʹҎԼͷࣄ߲Λهͯ͠ɺ PodΛ࡞͠·͠ΐ͏ • Container name: nginx • Image: nginx
(version 1.17.5) • Port: 80
Serviceͷ࡞ ྡͷmanifestΛ༻͍ͯɺService Λ࡞͠·͢ɻ ͦͷޙɺlocalhost:30080ʹΞΫηεͯ͠ɺ ҎԼͷΑ͏ͳը໘͕ग़Δ͜ͱΛ֬ೝ͠·͢ɻ
Replicaͷੜ • ҙͷWorkloads ResourceΛ༻͍ͯɺ[1. Podͷ࡞]Ͱ࡞ͨ͠podΛ 4 replicaͷϦιʔεͱͯ͠࡞͍ͯͩ͘͠͞ɻ ·ͨɺͦͷWorkloads ResourceΛબͨ͠ཧ༝ʹ͍ͭͯ·ͱΊͯΈ·͠ΐ͏ɻ Workloads
Resource: Pod, ReplicaSet, Deployment, DaemonSet, StatefulSet Updateઓུ • [3. Replicaͷੜ]ʹͯ࡞͞ΕϦιʔεʹ༻͞Ε͍ͯΔnginxͷversionΛ1.17.7 ʹ্͛Α͏ͱߟ͍͑ͯ·͢ɻμϯλΠϜ͕ͳ͍Α͏ʹΞοϓσʔτΛ͢Δʹɺ ɹmanifestʹ͓͍ͯɺͲͷΑ͏ͳ͜ͱΛઃఆ͢Δඞཁ͕͋ΔͰ͠ΐ͏͔ɻ ɹཧ༝ؚΊͯɺmanifestΛߏͯ͠Έ͍ͯͩ͘͞ɻ
ൃද༰ 1. [Replicaͷੜ]ʹ͓͍ͯɺ 1-1. ͲͷWorkloads ResourceΛબͨ͠ͷ͔ 1-2. ͳͥͦΕΛબͨ͠ͷ͔ 2. [Updateઓུ]ʹ͓͍ͯ
2-1. ͲͷΑ͏ͳmanifestΛߏஙͨ͠ͷ͔ 2-2. manifestΛߏங͢Δʹ͋ͨΓɺԿΛߟྀͨ͠ͷ͔ (strategymaxSurge, maxUnavailableͳͲ)