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.6k
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
インフラをつくるとはどういうことなのか、 あるいはPlatform Engineeringについて
nwiizo
6
3k
Platform Engineeringは自由のめまい
nwiizo
4
2.1k
Site Reliability Engineering on Kubernetes
nwiizo
6
5.1k
メインテーマはKubernetes
nwiizo
2
450
SREの前に
nwiizo
12
3.6k
2024年版 運用者たちのLLM
nwiizo
5
990
Platform Engineering と SRE の門
nwiizo
17
6.1k
運用者の各領域で向き合うLLM
nwiizo
1
520
可観測性ガイダンス
nwiizo
14
3.9k
Other Decks in Business
See All in Business
見積りと提案の力を競う見積りソン/ an estimation-thon to compete on the quality of estimates and proposals
bpstudy
0
200
コミュニティと横断組織を活かす“三菱電機”のre:Invent
licux
1
180
unnameカルチャーブック 2025.02.21 update
unnameinc
6
17k
ログから学ぶKubernetes
googlecloudjapan
1
370
朝日新聞社 ITエンジニア キャリア採用 紹介資料
asahi_cto
0
240
株式会社Anfini_新卒会社紹介資料
anfini
0
5.6k
anveil_companydeck_2025
anveilpr
0
330
merpay-overview_en
mercari_inc
1
18k
アッテル会社紹介資料/culture deck
attelu
10
14k
IRIAM Culture Deck
iriam
4
100k
株式会社B4A 会社紹介
b4a
0
6.7k
生成AIのリスクを考える
yuki_okubo
0
100
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
29
8.4k
Building an army of robots
kneath
303
45k
Designing Experiences People Love
moore
140
23k
Unsuck your backbone
ammeep
669
57k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Producing Creativity
orderedlist
PRO
344
40k
Practical Orchestrator
shlominoach
186
10k
GitHub's CSS Performance
jonrohan
1030
460k
Navigating Team Friction
lara
183
15k
Documentation Writing (for coders)
carmenintech
67
4.6k
Rails Girls Zürich Keynote
gr2m
94
13k
How to train your dragon (web standard)
notwaldorf
91
5.9k
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