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
740
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
270
Vault Secrets Operator Tutorial
ry
0
520
KyvernoとRed Hat ACMを用いたマルチクラスターの一元的なポリシー制御
ry
0
1.1k
明日から始められるKyvernoを用いたポリシー制御
ry
3
760
CNDT2022 k8snovice Community introduction
ry
0
140
Policy Engine on Kubernetes
ry
1
1.4k
ConfigMap and Secret
ry
0
350
Policy Manager試してみた!
ry
0
400
Kubernetes APIに Pod内からアクセスしてみた
ry
1
1.8k
Other Decks in Education
See All in Education
JOAI2025講評 / joai2025-review
upura
0
160
技術文章を書くための執筆技術と実践法(パラグラフライティング)
hisashiishihara
18
6.5k
子どものためのプログラミング道場『CoderDojo』〜法人提携例〜 / Partnership with CoderDojo Japan
coderdojojapan
4
16k
サンキッズゾーン 春日井駅前 ご案内
sanyohomes
0
340
Sponsor the Conference | VizChitra 2025
vizchitra
0
540
推しのコミュニティはなんぼあってもいい / Let's join a lot of communities.
kaga
2
1.7k
America and the World
oripsolob
0
510
Info Session MSc Computer Science & MSc Applied Informatics
signer
PRO
0
190
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019538FNR)
signer
PRO
1
2k
미국 교환학생 가서 무료 홈스테이 살면서 인턴 취업하기
maryang
0
110
Webリテラシー基礎
takenawa
0
5.4k
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
signer
PRO
1
2k
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
Visualization
eitanlees
146
16k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Six Lessons from altMBA
skipperchong
28
3.9k
Speed Design
sergeychernyshev
32
1k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
230
Java REST API Framework Comparison - PWX 2021
mraible
31
8.7k
Why Our Code Smells
bkeepers
PRO
337
57k
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ͳͲ)