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
780
meetup_topic__1.pdf
Kubernetes Wakaran Tokyo #1にて扱う問題です。
ry
February 10, 2020
Tweet
Share
More Decks by ry
See All by ry
Kubernetesにおける推論基盤
ry
1
430
eBPF Tools on Kubernetes part1
ry
0
340
Vault Secrets Operator Tutorial
ry
0
590
KyvernoとRed Hat ACMを用いたマルチクラスターの一元的なポリシー制御
ry
0
1.2k
明日から始められるKyvernoを用いたポリシー制御
ry
4
910
CNDT2022 k8snovice Community introduction
ry
0
170
Policy Engine on Kubernetes
ry
1
1.5k
ConfigMap and Secret
ry
0
400
Policy Manager試してみた!
ry
0
450
Other Decks in Education
See All in Education
Postcards
gabrielramirezv
0
160
AIで日本はどう進化する? 〜キミが生きる2035年の地図〜
behomazn
0
130
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
signer
PRO
0
2.6k
Gitの仕組みと用語 / 01-b-term
kaityo256
PRO
0
200
Introduction - Lecture 1 - Advanced Topics in Big Data (4023256FNR)
signer
PRO
2
2.3k
東大1年生にJulia教えてみた
matsui_528
7
12k
理工学系 第1回大学院説明会2026|東京科学大学(Science Tokyo)
sciencetokyo
PRO
0
220
Blueprint for Strengthening Community Colleges Training Grant Success
territorium
PRO
0
160
Pen-based Interaction - Lecture 4 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2.1k
小学校5,6年生向けキャリア教育 大人になるまでの道
sat
PRO
8
3.4k
Security, Privacy and Trust - Lecture 11 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
Interactive Tabletops and Surfaces - Lecture 5 - Next Generation User Interfaces (4018166FNR)
signer
PRO
1
2k
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.9k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
220
AI: The stuff that nobody shows you
jnunemaker
PRO
3
460
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Bash Introduction
62gerente
615
210k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
130
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
270
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
88
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
A better future with KSS
kneath
240
18k
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ͳͲ)