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
Real World Container for GTB2020
Search
nwiizo
May 15, 2020
Business
11
2.5k
Real World Container for GTB2020
2020年5月19日のGTB2020のコンテナ技術の資料
https://github.com/nwiizo/2020_gtb_container_work
nwiizo
May 15, 2020
Tweet
Share
More Decks by nwiizo
See All by nwiizo
メインテーマはKubernetes
nwiizo
2
370
SREの前に
nwiizo
12
3.3k
2024年版 運用者たちのLLM
nwiizo
5
910
Platform Engineering と SRE の門
nwiizo
16
5.7k
運用者の各領域で向き合うLLM
nwiizo
1
480
可観測性ガイダンス
nwiizo
14
3.7k
書を捨てよ、現場へ出よう
nwiizo
12
11k
走馬灯のIaCは考えておいて
nwiizo
10
5.9k
SREとPlatform Engineerの交差点
nwiizo
9
6.8k
Other Decks in Business
See All in Business
VISASQ: ABOUT US
eikohashiba
15
470k
経験やセンスに頼らずに成果を出すためのチームマネジメント実践ガイド / Team Management Without Relying on Experience or Intuition
happy_imafuku
4
10k
mov 会社紹介スライド
mov
0
410
ユビー生成AIの導入・成果事例集イメージ
ubie
0
170
会社案内資料
mkengineering
1
230
(16枚)組織と集団の違いとは? 組織の「3要素」とは?
nyattx
PRO
3
2k
AWS re:Invent参加のリアル 〜女性目線で考える健康・美容・安全のベストプラクティス〜
o2mami
1
320
【After】サービス紹介資料③_HP掲載用
redeslide
0
480
1LDK会社紹介資料
1ldkinc
1
450
ストーリーテリングでチームに”熱"を伝える🔥
inagakikay
1
9.9k
KRAF Impact Report 2024(日本語版)
kraf
0
200
よいPM定例はPM組織を強くする ~ 共有から共創へ、悩みを共に解決する場づくり ~
jouykw
1
6.1k
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.3k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
510
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
800
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Raft: Consensus for Rubyists
vanstee
136
6.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Fireside Chat
paigeccino
34
3.1k
Transcript
None
None
• • • • •
プロセスからコンテナ、そして…
None
2013年リリース!
None
• • • • • • • • • •
• •
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ https://employment.en-japan.com/engineerhub/entry/2019/02/05/103000 コンテナ技術入門 - 仮想化との違いを知り、要素技術を触って学ぼう
⚫ ⚫
⚫ ⚫ ⚫ ⚫
⚫ ⚫ 昨日、講義でやった(はず)
⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ https://github.com/cncf/toc/blob/master/DEFINITION.md 最近日本語が登場したので差し替えます. ありがとう @yokawasa さん
⚫ ⚫ ⚫ https://github.com/cncf/toc/blob/master/DEFINITION.md 最近日本語が登場したので差し替えます. ありがとう @yokawasa さん
None
… … … ⚫ ⚫ ⚫
⚫ ⚫ ⚫
⚫ Building Microservices ⚫ Production-Ready Microservices
⚫ ⚫ ⚫ マイクロサービスパターン 実践的システムデザインのためのコード解説 書籍紹介より
⚫ ⚫ ⚫ Site Reliability Engineering
https://github.com/cncf/presentations
None
27
28
None
None
プロセスからコンテナ、そして…
⚫ ⚫ ⚫ ⚫ https://www.docker.com/
⚫ ⚫ ⚫
⚫ ⚫ ⚫
⚫ ⚫
⚫
⚫ ⚫ ⚫
⚫ ⚫ https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#leverage-build-cache Leverage build cache
⚫ ⚫ https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#leverage-build-cache Leverage build cache
None
⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫
⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ • •
⚫ ⚫ ⚫ ⚫
⚫ ⚫
⚫ ⚫ ⚫ ⚫ local remote
⚫ ⚫ ⚫ 最初に実行される
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ Dockerfile リファレンス https://docs.docker.com/engine/reference/builder/
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
Image Source and Credits: http://docker-saigon.github.io/post/Docker-Internals/
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
None
分散システムもDockerも何も分からんのにKubernetesに入門するけど大丈夫ですか?
None
None
None
None
None
None
None
None
None
None
None
⚫ ⚫ ⚫ https://ai.google/research/pubs/pub43438 Large-scale cluster management at Google with
Borg
⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ replicaset.yaml
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
⚫ ⚫ ⚫ ⚫
None
None
None
None
None
None
None
None
None
None
None
⚫ ⚫
None
テンプレート containerの変更 v1 v2
テンプレート containerの変更 v1 v2
None
None
None
None
None
None
None
None
None
None
None
• • • • •
None
None
絶対に順守すべきというものではなくあくまで原則
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ https://12factor.net/ja/
⚫ ⚫ https://12factor.net/ja/codebase
⚫ ⚫ ⚫ https://12factor.net/ja/codebase
⚫ ⚫ ⚫ https://12factor.net/ja/dependencies
⚫ ⚫ ⚫ ⚫ ⚫ https://12factor.net/ja/config
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ https://12factor.net/ja/config
⚫ ⚫ ⚫ ⚫ 従来型のVMは全てを内包 The Twelve Factorsは疎結合
⚫ ⚫ ⚫
⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫
⚫ ⚫ ⚫
⚫ ⚫ ⚫ https://adam.herokuapp.com/past/2011/5/9/applying_the_unix_process_model_to_web_apps/
⚫ ⚫ ⚫ https://lwn.net/Articles/191059/ Golang HTTP Server Graceful Shutdown
⚫ ⚫ ⚫ ⚫ https://lwn.net/Articles/191059/
⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫
⚫ ⚫ 動作するきれいなコード: SeleniumConf Tokyo 2019 基調講演文字起こし+α
⚫ ⚫ ⚫ ⚫
⚫ ⚫ https://kubernetes.io/docs/concepts/cluster-administration/logging/ Logging at the node level Using a
node logging agent Streaming sidecar container Exposing logs directly from the application Sidecar container with a logging agent
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
None
None
None
⚫ ⚫
⚫ ⚫
⚫ ⚫
⚫ ⚫
⚫ ⚫
⚫ ⚫ ⚫
⚫ ⚫
⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫
https://kubernetes.io/docs/concepts/overview/components/#kube-controller-manager
• • • Garbage Collection https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/
⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫
None
None
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ IX. 廃棄容易性 https://12factor.net/ja/disposability
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
Container Lifecycle Hooks
None
None
⚫ ⚫ ⚫ ⚫ The Gotchas of Zero-Downtime Traffic /w
Kubernetes - Leigh Capili, Weaveworks https://kccncna19.sched.com/event/Uads/the-gotchas-of-zero-downtime-traffic- w-kubernetes-leigh-capili-weaveworks
⚫ ⚫ The Gotchas of Zero-Downtime Traffic /w Kubernetes -
Leigh Capili, Weaveworks https://kccncna19.sched.com/event/Uads/the-gotchas-of-zero-downtime-traffic- w-kubernetes-leigh-capili-weaveworks @tukejonny 談
⚫ ⚫ The Gotchas of Zero-Downtime Traffic /w Kubernetes -
Leigh Capili, Weaveworks https://kccncna19.sched.com/event/Uads/the-gotchas-of-zero-downtime-traffic- w-kubernetes-leigh-capili-weaveworks
None
https://12factor.net/ja/config
⚫ ⚫ ⚫ ⚫ https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
None
None
⚫ ⚫ ⚫ ⚫ https://kubernetes.io/docs/tasks/run-application/configure-pdb/
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ Vertical Pod
Autoscaling Horizontal Pod Autoscaler
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ この辺は別途説明が必要なので割愛だお
None
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫
⚫ ⚫
⚫ ⚫
⚫ ⚫
⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫
⚫ ⚫ ⚫ ⚫ ⚫
None
⚫ ⚫ ⚫ ⚫
⚫ Docker/Kubernetes開発・運用のための セキュリティ実践ガイド
None
None
⚫ ⚫ ⚫ ⚫ ⚫
None
⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫
None