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
VolumePluginの仕組みと実装解説
Search
Kyohei Mizumoto
February 22, 2021
Technology
0
130
VolumePluginの仕組みと実装解説
勉強会の資料です。
https://k8sinternal.connpass.com/event/203946/
Kyohei Mizumoto
February 22, 2021
Tweet
Share
More Decks by Kyohei Mizumoto
See All by Kyohei Mizumoto
Black Hat USA 2025 Recap ~ クラウドセキュリティ編 ~
kyohmizu
0
790
CTFのためのKubernetes入門
kyohmizu
2
970
クラウドネイティブ環境の脅威モデリング
kyohmizu
2
700
コンテナサプライチェーンセキュリティ
kyohmizu
2
400
サイバーセキュリティの最新動向:脅威と対策
kyohmizu
1
360
コンテナセキュリティの基本と脅威への対策
kyohmizu
4
2k
安全な Kubernetes 環境を目指して
kyohmizu
4
1.3k
Unlocking Cloud Native Security
kyohmizu
5
1.5k
コンテナ × セキュリティ × AWS
kyohmizu
11
4.2k
Other Decks in Technology
See All in Technology
[2025-12-12]あの日僕が見た胡蝶の夢 〜人の夢は終わらねェ AIによるパフォーマンスチューニングのすゝめ〜
tosite
0
220
AR Guitar: Expanding Guitar Performance from a Live House to Urban Space
ekito_station
0
270
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
250
ハッカソンから社内プロダクトへ AIエージェント「ko☆shi」開発で学んだ4つの重要要素
sonoda_mj
6
1.9k
投資戦略を量産せよ 2 - マケデコセミナー(2025/12/26)
gamella
0
540
日本Rubyの会: これまでとこれから
snoozer05
PRO
6
250
The State of AI Agent Security:2025年の総括と2026年の宿題
pict3
0
110
Microsoft Agent Frameworkの可観測性
tomokusaba
1
120
Claude Codeを使った情報整理術
knishioka
15
11k
『君の名は』と聞く君の名は。 / Your name, you who asks for mine.
nttcom
1
130
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
170
AI との良い付き合い方を僕らは誰も知らない
asei
1
310
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
0
980
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.2k
WENDY [Excerpt]
tessaabrams
9
35k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
75
Getting science done with accelerated Python computing platforms
jacobtomlinson
0
84
Speed Design
sergeychernyshev
33
1.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
990
Building AI with AI
inesmontani
PRO
1
590
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Transcript
VolumePluginの仕組みと実装解説
varsion: v2 name: "Kyohei Mizumoto" role: "SRE" interests: - "kubernetes"
- "public cloud" - "golang" twitter: "@kyohmizu" url: "https://kyohmizu.com/" whoami
今⽇話すこと VolumePluginの概要 Volume作成の仕組み 実装解説 VolumeManager VolumePlugin (emptyDir/ConfigMap/Secret)
注意点 kubernetes v1.20.2ベースでお話しします Linuxノードに直接作成するVolumeが対象です (Windowsノード、CSI等は取り扱いません) 理解不⾜により内容に誤りがある可能性があります…︕
kubeletについて こちらを参照 https://speakerdeck.com/bells17/kubelet
VolumePluginについて kubelet内で動作するPlugin pod.spec.volumesに基づいてノード上にVolumeを作成する Volumeの種類ごとにPluginが⽤意されている https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#volume-v1-core
Volume作成の仕組み
引⽤︓https://speakerdeck.com/bells17/kubelet?slide=17
None
None
Volume作成の仕組み desired state of world ノードに作成・アタッチすべきVolume⼀覧 actual state of world
ノードに作成・アタッチされたVolume⼀覧 desired state of world populator ノードにスケジュールされたPod⼀覧からdswを更新する reconciler dswとaswを⽐較し、未作成のVolumeの作成とaswの更新を⾏う
実装解説
実装解説 VolumePlugin定義 初期化 (kubelet起動時) Volume作成の流れ VolumePluginの実装 emptyDir ConfigMap Secret
実装解説 emptyDir/ComfigMap/Secretの保存パスについて Secretはメモリ領域(tmpfs)に作成される ComfigMap/Secretの動的更新と修復 emptyDirのv1.20での修正内容
実装解説 資料のリンク https://gist.github.com/kyohmizu/23ab1e76ebc2a2984694b144a0be9b78