Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Kubernetes Helm で始めるコンテナ生活
TonyTonyKun
December 10, 2017
Technology
1
400
Kubernetes Helm で始めるコンテナ生活
Global Azure Bootcamp 2017 の LT 資料です。
TonyTonyKun
December 10, 2017
Tweet
Share
More Decks by TonyTonyKun
See All by TonyTonyKun
Azure Synapse Analytics 入門/jazug11
thara0402
0
340
Azure Bicep で始める Infrastructure as Code/ace0917
thara0402
0
210
Introduction to Azure Synapse Analytics/ace0416
thara0402
0
290
Azure Kubernetes Service を活用したマイクロサービス開発/clouddev
thara0402
0
230
Azure Kubernetes Service を活用したマイクロサービス開発/Ignite-osaka
thara0402
0
300
Azure Kubernetes Service を活用したマイクロサービス開発/Ignite-tokyo
thara0402
0
52
Azure アーキテクチャ センターを読んで LINE BOT を作ってみた話/kitaazu23
thara0402
0
990
Azure Custom Vision を使って「五等分の花嫁」の未来の花嫁を予想してみた
thara0402
0
570
interact2018.pdf
thara0402
3
3.1k
Other Decks in Technology
See All in Technology
Dangerous attack paths: Modern Development Environment Security - Devices and CI/CD pipelines
rung
PRO
0
190
ReverseETLでユーザーに価値を届ける基盤を実現した話
hakky
0
360
AWS環境のセキュリティどうやってチェックしてる?
cmusudakeisuke
1
2.1k
データをコネコネ!メール配信用データ生成の仕組み
kappezoro
0
130
品質特性のすすめ
honamin09
0
190
テクニカルライティングの検定を受けてみた話 / "My Story About Taking the Technical Writing Exam
line_developers
PRO
1
240
eBPFで実現するコンテナランタイムセキュリティ / Container Runtime Security with eBPF
tobachi
PRO
5
1.9k
ECS Fargate+Mackerelにおける監視費用を削減するまでの話
nulabinc
PRO
1
530
Microsoft Data Analytics trends : ”Lakehouse” , ”Data Mesh"
ryomaru0825
2
170
今 SLI/SLO の監視をするなら Sloth が良さそうという話
shotakitazawa
1
300
増田亨さんによる 「設計の考え方とやり方」勉強会オープニング
tsuyok
0
240
バッファープールが大きいMySQL v5.7でDROP DATABASEが詰まった原因と対策 / Causes and Remedies for DROP DATABASE Stuck in MySQL v5.7 with Large Buffer Pool
line_developers
PRO
4
870
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
316
19k
GitHub's CSS Performance
jonrohan
1020
420k
Bootstrapping a Software Product
garrettdimon
296
110k
It's Worth the Effort
3n
172
26k
We Have a Design System, Now What?
morganepeng
35
3k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
655
120k
Designing for Performance
lara
597
64k
What the flash - Photography Introduction
edds
63
10k
jQuery: Nuts, Bolts and Bling
dougneiner
56
6.5k
Ruby is Unlike a Banana
tanoku
91
9.3k
Web development in the modern age
philhawksworth
197
9.4k
Documentation Writing (for coders)
carmenintech
48
2.6k
Transcript
Kubernetes Helm から始める コンテナ⽣活 2017.04.23 Global Azure Bootcamp 2017
⾃⼰紹介 名前 原 敏之 個⼈ Twitter : @TonyTonyKun ROMANCE DAWN
for the new world • http://gooner.hateblo.jp/ Microsoft MVP for Microsoft Azure 仕事 株式会社アークウェイ .NET 開発を中⼼としたアーキテクチャ コンサルティング Copyright© 2017, JAZUG All Rights Reserved. 2
Microsoft が Deis の買収を発表(2017/4/11) Deis Kubernetes 向けのツールを開発するベンチャー • Workflow •
Helm • Steward Copyright© 2017, JAZUG All Rights Reserved. 3
Kubernetes とは コンテナオーケストレーション Google が開発し、オープンソースで公開 Kubernetes 以外では、Docker Swarm や DC
/ OS などが有名 ⾃分でインストールして環境を構築することもできるが、クラ ウドベンダーが提供しているコンテナサービスを使うと便利 Azure Container Service Amazon EC2 Container Service Google Container Engine Copyright© 2017, JAZUG All Rights Reserved. 4
Azure Container Service Docker コンテナ上で動かすアプリケーションをホストできる サービス DC / OS Kubernetes
Docker Swarm Copyright© 2017, JAZUG All Rights Reserved. 5
kubectl コマンドを使ったデプロイ kubectl のみ kubectl + YAML Copyright© 2017, JAZUG
All Rights Reserved. 6 $ kubectl run nginx --image nginx $ kubectl expose deployments nginx --port=80 --type=LoadBalancer $ kubectl create -f nginx-deployment.yaml --record $ kubectl create -f nginx-service.yaml --record 1つのアプリでも、複数の YAML で構成するので、管理が煩雑になりやすい
Kubernetes Helm Copyright© 2017, JAZUG All Rights Reserved. 7
Helm とは Kubernetes のパッケージマネージャー Charts Kubernetes の YAML をまとめたパッケージ Helm
⾃体は、2つのパートで構成されている Client ( helm ) Server ( tiller ) KubeApps リモートの Charts Repository https://kubeapps.com/ Copyright© 2017, JAZUG All Rights Reserved. 8
Helm のインストール 前提条件 kubectl をインストールしておく Helm Client をインストール Tiller をインストール
Copyright© 2017, JAZUG All Rights Reserved. 9 $ brew install kubernetes-helm $ helm init
Charts Repository を表⽰する Copyright© 2017, JAZUG All Rights Reserved. 10
Demo WordPress をインストールする Copyright© 2017, JAZUG All Rights Reserved. 11
$ helm install stable/wordpress
まとめ Helm を使うと、Kubernetes にサクッとデプロイできる YAML をゴリゴリ書くのは⼤変なので、Charts Repository を参考 にするのがオススメ 今後、Kubernetes
を便利に使えるようになることを期待したい Copyright© 2017, JAZUG All Rights Reserved. 12
参考資料 Deis https://deis.com/ Kubernetes Helm https://github.com/kubernetes/helm KubeApps https://kubeapps.com/ Copyright© 2017,
JAZUG All Rights Reserved. 13