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
440
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
1106
cbtlibrary
0
430
Image Processing 1 : 1.Introduction
hachama
0
440
Semantic Web and Web 3.0 - Lecture 9 - Web Technologies (1019888BNR)
signer
PRO
2
2.6k
Kaggle 班ができるまで
abap34
1
220
1030
cbtlibrary
0
320
SQL初級中級_トレーニング【株式会社ニジボックス】
nbkouhou
0
23k
Requirements Analysis and Prototyping - Lecture 3 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
850
20241002_Copilotって何?+Power_AutomateのCopilot
ponponmikankan
1
190
Ch2_-_Partie_2.pdf
bernhardsvt
0
110
人々はさくらになにを込めたか
jamashita
0
130
子どものためのプログラミング道場『CoderDojo』〜法人提携例〜 / Partnership with CoderDojo Japan
coderdojojapan
4
14k
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
2.5k
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
We Have a Design System, Now What?
morganepeng
51
7.3k
The Cult of Friendly URLs
andyhume
78
6.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Six Lessons from altMBA
skipperchong
27
3.5k
Being A Developer After 40
akosma
87
590k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Building Applications with DynamoDB
mza
91
6.1k
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ͳͲ)