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
KubernetesとDeclarative Configuration
Search
Tomoya Tabuchi
March 09, 2019
Programming
0
410
KubernetesとDeclarative Configuration
CAMPHOR- Day 2019 (
https://camphor.connpass.com/event/119434/
) での発表資料.
Tomoya Tabuchi
March 09, 2019
Tweet
Share
More Decks by Tomoya Tabuchi
See All by Tomoya Tabuchi
Docker Hands On
tomoyat1
1
390
meltdown.pdf
tomoyat1
0
41
Other Decks in Programming
See All in Programming
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
120
生成AI時代のコンポーネントライブラリの作り方
touyou
1
230
猫と暮らす Google Nest Cam生活🐈 / WebRTC with Google Nest Cam
yutailang0119
0
140
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
780
dbt民主化とLLMによる開発ブースト ~ AI Readyな分析サイクルを目指して ~
yoshyum
3
1k
Advanced Micro Frontends: Multi Version/ Framework Scenarios @WAD 2025, Berlin
manfredsteyer
PRO
0
160
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
700
Claude Code + Container Use と Cursor で作る ローカル並列開発環境のススメ / ccc local dev
kaelaela
10
5.7k
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
180
코딩 에이전트 체크리스트: Claude Code ver.
nacyot
0
530
NPOでのDevinの活用
codeforeveryone
0
850
The Modern View Layer Rails Deserves: A Vision For 2025 And Beyond @ RailsConf 2025, Philadelphia, PA
marcoroth
2
400
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.4k
4 Signs Your Business is Dying
shpigford
184
22k
For a Future-Friendly Web
brad_frost
179
9.8k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Optimizing for Happiness
mojombo
379
70k
BBQ
matthewcrist
89
9.7k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.9k
Transcript
Kubernetes とDeclarative Configuration 2019-03-09 Tomoya Tabuchi (@tomoyat1) 1 / 10
本日のお話 • Kubernetes とは? • Declarative Configuration • Reconciliation Loop
• 具体例 (デモ) 2 / 10
Kubernetes1とは? • コンテナを中心としたプラットフォーム? • 計算・ネットワーク・ストレージの管理? • 分散コンピューティング? 今日は Declarative Configuration
の観点から紹介 1https://kubernetes.io/ 3 / 10
Declarative Configuration どのリソースがどれだけあるかを宣言することで構成を定義する # hello-kube のコンテナを 1 つ動かしたい! # (今日は
YAML の仕様を理解しなくてよいです) kind: Deployment spec: replicas: 1 # 動かす個数 template: spec: containers: # コンテナの仕様 - image: gcr.io/tomoyat1-artifacts/hello-kube:v0.0.1 name: hello-kube 宣言するだけで構成が勝手にそれに近づく! →どうやって? 4 / 10
Reconciliation Loop • 観測・差分計算・操作のループ • リソースごとに別コンポーネント がループを実行 5 / 10
コンテナ (Pod) 数の維持 – 具体例 6 / 10
イメージの変更 – 具体例 7 / 10
external-dns, cert-manager – 具体例 • external-dns2: DNS レコードの管理を行う Add-on •
cert-manager3: Let’s Encrypt の証明書を自動で作成する Add-on • 時間がかかるので発表前に仕込んでおきました (終わっていてくれ :pray:) 2https://github.com/kubernetes-incubator/external-dns 3https://github.com/jetstack/cert-manager 8 / 10
まとめ • Kubernetes: Declarative Configuration によるインフラの自動化ができる • 独自のリソースを定義する →自動化するプラットフォーム •
分散させるような大規模環境でなくても便利そう 9 / 10
ご清聴ありがとうございました Further Reading • 公式 • https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/ • https://kubernetes.io/docs/concepts/overview/object-management- kubectl/declarative-config/
• https://deeeet.com/writing/2018/12/13/how-kubernetes-change-our-way-of- automation/ • https://www.slideshare.net/ToruMakabe/kubernetes-120907020 10 / 10