Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
430
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
400
meltdown.pdf
tomoyat1
0
43
Other Decks in Programming
See All in Programming
チームをチームにするEM
hitode909
0
330
AIコーディングエージェント(Gemini)
kondai24
0
220
関数実行の裏側では何が起きているのか?
minop1205
1
700
Microservices rules: What good looks like
cer
PRO
0
1.4k
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
190
LLM Çağında Backend Olmak: 10 Milyon Prompt'u Milisaniyede Sorgulamak
selcukusta
0
120
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
230
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
130
マスタデータ問題、マイクロサービスでどう解くか
kts
0
100
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
340
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.4k
【Streamlit x Snowflake】データ基盤からアプリ開発・AI活用まで、すべてをSnowflake内で実現
ayumu_yamaguchi
1
120
Featured
See All Featured
Building an army of robots
kneath
306
46k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How GitHub (no longer) Works
holman
316
140k
It's Worth the Effort
3n
187
29k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Fireside Chat
paigeccino
41
3.7k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
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