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
DockerからKubernetesまでを簡単に紹介
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Masa
May 17, 2019
Technology
2
680
DockerからKubernetesまでを簡単に紹介
Event
- 2019/05/17 はんなりPythonの会 #17 令和最初の発表会
-
https://hannari-python.connpass.com/event/128999/
Masa
May 17, 2019
Tweet
Share
More Decks by Masa
See All by Masa
Compose on Kubernetes をGKEで動かそう
masayuki14
0
1.3k
Dockerを使った可視化環境の作り方
masayuki14
1
1.6k
個人の学びを続けるために
masayuki14
0
1.4k
君はWindow関数を知っているか
masayuki14
1
1.3k
はんなりPython2018ふりかえり
masayuki14
0
1.2k
MySQL8.0を使ってブロックチェーンを実装する
masayuki14
0
4.4k
Life is no plan.
masayuki14
0
680
MySQL InnoDB Cluster を使って運用を手抜きしよう
masayuki14
5
5k
JupyterNotebook入門
masayuki14
0
3.5k
Other Decks in Technology
See All in Technology
[JAWSDAYS2026][D8]その起票、愛が足りてますか?AWSサポートを味方につける、技術的「ラブレター」の書き方
hirosys_
3
180
情シスのための生成AI実践ガイド2026 / Generative AI Practical Guide for Business Technology 2026
glidenote
0
240
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
8
7.2k
最強のAIエージェントを諦めたら品質が上がった話 / how quality improved after giving up on the strongest AI agent
kt2mikan
0
180
AIエージェント時代に備える AWS Organizations とアカウント設計
kossykinto
3
950
S3はフラットである –AWS公式SDKにも存在した、 署名付きURLにおけるパストラバーサル脆弱性– / JAWS DAYS 2026
flatt_security
0
1.8k
Evolution of Claude Code & How to use features
oikon48
1
610
プラットフォームエンジニアリングはAI時代の開発者をどう救うのか
jacopen
2
500
Kubernetesにおける推論基盤
ry
1
380
AI実装による「レビューボトルネック」を解消する仕様駆動開発(SDD)/ ai-sdd-review-bottleneck
rakus_dev
0
130
モブプログラミング再入門 ー 基本から見直す、AI時代のチーム開発の選択肢 ー / A Re-introduction of Mob Programming
takaking22
5
1.5k
決済サービスを支えるElastic Cloud - Elastic Cloudの導入と推進、決済サービスのObservability
suzukij
2
630
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
210
Optimizing for Happiness
mojombo
378
71k
So, you think you're a good person
axbom
PRO
2
2k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Code Review Best Practice
trishagee
74
20k
What does AI have to do with Human Rights?
axbom
PRO
1
2k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Thoughts on Productivity
jonyablonski
75
5.1k
WCS-LA-2024
lcolladotor
0
480
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
Transcript
Dockerから Kubernetesまで を簡単に紹介 はんなりPythonの会 #17 令和最初の 発表会 2019/05/17 @masayuki14
Masaといいます もりさきまさゆき @masayuki14 プロ主夫 フリーランス (パートタイム) ‐ ソフトウェアエンジニア ‐ データベーススペシャリスト
‐
このアイコン Follow me !!
自己紹介 コミュニティ はんなりPython (第3金曜開催@京都) ‐ OSS Gate (京都, 大阪, 東京)
‐ スプーキーズアンバサダー
スプーキーズ@京都 ボードゲーム制作 Web系システム ソーシャルゲーム開発 Webエンジニア積極採用中!!
スプーキーズ@京都 もくもく会 モクモクモック 勉強会 テクテクテック 2019/07 企画中 ISUCONワークショップ - 速度改善
‐ CTF - セキュリティ ‐
Dockerから Kubernetes までを簡単に 紹介
DockerからKubernetesまで を簡単に紹介 Docker Docker Compose Docker Swarm Kubernetes(k8s)
Docker
Dockerの基礎概念 コンテナ型仮想化技術 アプリケーションデプロイに特 化
Dockerの基礎概念
Dockerの利点 環境の再現性 軽量 VMより軽い ‐ 簡易 コマンド ‐ Dockerfle ‐
Dockerの利点 JupyterNoteBookの起動 $ docker run --rm \ -p 8888:8888 \
jupyter/scipy-notebook http://localhost:8888
Dockerの利点 Dockerfleで設定 FROM jupyter/scipy-notebook RUN pip install plotly RUN pip
install pandas
Dockerの利点 ビルドと実行 $ docker build -t myjupyter . $ docker
run --rm \ -p 8888:8888 \ myjupter
Dockerの苦手なこと 複数のコンテナの協調 コマンドが長くなる ‐ 管理が大変 ‐ Docker Compose を使おう
Docker Compose
Docker Composeの利点 複数のコンテナを扱える 元々はFig buildと実行を同時に docker-compose.yml で設定
Docker Composeの利点 version: '3.7' services: dash: build: context: ./dash ports:
- 8050:8050 db: image: mysql:8.0 environment: MYSQL_ROOT_PASSWORD: root ports: - 3306:3306
Docker Composeの利点 $ ls docker-compose.yml $ docker-compose up Dockerfleのビルドを行って各コン テナを起動
Docker Compose の苦手な こと 単一ホストでの構成 複数ホストで配置できない ‐ 冗長化できない Docker Swarm
を使おう
Docker Swarm
Docker Swarmの利点 Dockerホストのクラスタ コンテナオーケストレーション コンテナ配置(複製・分散) ‐ コンテナ間通信 ‐ コンテナのスケール Service,
Stack ‐
Docker Swarmの利点 Swarm Cluster
Docker Swarmの利点
Docker Swarm の苦手なこと クラスタ作らないといけない コマンド操作が多い 管理/運用が煩雑 Kubernetes を使おう
k8s
k8sの利点 コンテナオーケストレーション コンテナ運用の自動化 設定ファイルで運用 高機能
k8sの利点 Google謹製 OSS (Borg) クラウドで使える GKE ‐ EKS ‐ AKS
‐
k8sの利点
k8sの苦手なこと 学習コスト高い エンジニアコストが高い
まとめ Dockerで始める仮想化 k8s一緒にやりませんか
引用 https://knowledge.sakura.ad.jp/ 13265/ https://info.crunchydata.com/ blog/an-easy-recipe-for-creating- a-postgresql-cluster-with-docker- swarm
引用 https://github.com/ dockersamples/docker-swarm- visualizer https://blog.risingstack.com/what- is-kubernetes-how-to-get-started/