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
720
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
250
Vault Secrets Operator Tutorial
ry
0
500
KyvernoとRed Hat ACMを用いたマルチクラスターの一元的なポリシー制御
ry
0
1k
明日から始められるKyvernoを用いたポリシー制御
ry
3
730
CNDT2022 k8snovice Community introduction
ry
0
130
Policy Engine on Kubernetes
ry
1
1.4k
ConfigMap and Secret
ry
0
340
Policy Manager試してみた!
ry
0
390
Kubernetes APIに Pod内からアクセスしてみた
ry
1
1.7k
Other Decks in Education
See All in Education
推しのコミュニティはなんぼあってもいい / Let's join a lot of communities.
kaga
2
1.3k
保育士チームが実践している連続的な観察と多面的な観察を共有するための振り返り / Reflection to share “continuous and multifaceted observations” as practiced by a team of childcare professionals
psj59129
0
3.9k
女子商アプリ開発の軌跡
asial_edu
0
350
複式簿記から純資産を排除する/eliminate_net_assets_from_double-entry_bookkeeping
florets1
1
360
Introduction - Lecture 1 - Advanced Topics in Big Data (4023256FNR)
signer
PRO
1
1.7k
諸外国の理科カリキュラムにおけるビッグアイデアの構造比較
arumakan
0
200
Virtual and Augmented Reality - Lecture 8 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
1.6k
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
signer
PRO
0
2.3k
統計学に必要な数学(線形代数含む)
kosugitti
0
370
Juvenile in Justice
oripsolob
0
510
Data Physicalisation - Lecture 9 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
370
論文紹介のやり方 / How to review
kaityo256
PRO
15
79k
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
35
2.7k
Documentation Writing (for coders)
carmenintech
69
4.7k
Practical Orchestrator
shlominoach
187
11k
Six Lessons from altMBA
skipperchong
28
3.7k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
How to Think Like a Performance Engineer
csswizardry
23
1.5k
BBQ
matthewcrist
88
9.6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
104
19k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Statistics for Hackers
jakevdp
798
220k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
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ͳͲ)