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
Azure Kubernetes Service を活用したマイクロサービス開発/clouddev
Search
TonyTonyKun
March 06, 2021
Technology
0
560
Azure Kubernetes Service を活用したマイクロサービス開発/clouddev
クラウドデベロッパーちゃんねるのセッション動画スライドです。
TonyTonyKun
March 06, 2021
Tweet
Share
More Decks by TonyTonyKun
See All by TonyTonyKun
これでバッチリ!Azure マルチテナントアーキテクチャ設計のコツ/jat06
thara0402
0
640
Azure Load Testing を使って Azure Functions Flex Consumption の HTTP Trigger のパフォーマンスとコストを最適化してみよう/global-azure2025
thara0402
0
220
Prompty を使って生成 AI アプリケーション開発のプロンプトを管理する/jat03
thara0402
0
64
Azure OpenAI Service で意図せず PTU モデルをデプロイして高額請求されてしまった件/jat04
thara0402
0
75
「Durable Task Scheduler」をチョイ見せ!/jat05
thara0402
0
53
Azure App Service on Linux の Sidecar に Phi-3 を配置してインテリジェントなアプリケーションを作ってみよう/jazug-anniv14
thara0402
0
1.3k
サイクルガードサービス AlterLock の問い合わせ対応業務に Azure OpenAI Service を活用した話/jazug46
thara0402
0
970
Microsoft Ignite 2023 現地参加レポート/ignite2023
thara0402
0
310
Azure Container Apps で .NET 7 アプリを Blue-Green デプロイしてみよう!/jazug12
thara0402
0
1.8k
Other Decks in Technology
See All in Technology
Master Dataグループ紹介資料
sansan33
PRO
1
4.2k
ドメイン駆動セキュリティへの道しるべ
pandayumi
0
110
Data Hubグループ 紹介資料
sansan33
PRO
0
2.6k
Databricks Free Editionで始めるLakeflow SDP
taka_aki
0
140
Databricks Free Edition講座 データエンジニアリング編
taka_aki
0
2.7k
The Engineer with a Three-Year Cycle
e99h2121
0
150
Vivre en Bitcoin : le tutoriel que votre banquier ne veut pas que vous voyiez
rlifchitz
0
320
AI に「学ばせ、調べさせ、作らせる」。Auth0 開発を加速させる7つの実践的アプローチ
scova0731
0
320
Scrum Guide Expansion Pack が示す現代プロダクト開発への補完的視点
sonjin
0
760
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
1.5k
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
930
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
670
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
290
Designing Experiences People Love
moore
143
24k
What's in a price? How to price your products and services
michaelherold
246
13k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
0
1k
How to build a perfect <img>
jonoalderson
1
4.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
Facilitating Awesome Meetings
lara
57
6.7k
How to make the Groovebox
asonas
2
1.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Transcript
Azure Kubernetes Service を活用した マイクロサービス開発のベストプラクティス
自己紹介 https://gooner.hateblo.jp/ https://jazug.connpass.com
AKS を活用したマイクロサービス開発のベストプラクティス
1. Helm でマイクロサービスの構成を管理する https://hub.kubeapps.com/
2. Nginx Ingress Controller で外部向けエンドポイントを公開する ※ Azure ポータルから設定できる HTTP Application
Routing アドオンの本番運用は非推奨です。 POS Service Client Item Service Nginx Ingress Controller /pos /item Ingress.yaml Kubernetes Cluster Ingress.yaml
3. アップグレード戦略には Blue / Green デプロイを採用する ※ サービスメッシュ(Istio など)を使わなくても、Blue /
Green デプロイを実現できます。 POS Service Client Nginx Ingress Controller Kubernetes Cluster Pod Pod pos-api v1 pos-api v1 pos-api v2 Service
3. アップグレード戦略には Blue / Green デプロイを採用する Nginx Ingress Controller Microservices
( Pod ) Kubernetes Cluster v 1.18.14 Nginx Ingress Controller Kubernetes Cluster v 1.19.7 Microservices ( Pod ) Application Gateway V2 Data Store
4. Pod と Node のスケーリングを組み合わせて構成する 200m 256Mi 100m 128Mi
4. Pod と Node のスケーリングを組み合わせて構成する ※ 導入時は Cluster Autoscaler を使わずに、Node
数を固定して運用を開始する方法もあります。
5. 障害が発生する前提で構成を決める
5. 障害が発生する前提で構成を決める / 80 /readiness 80
6. Azure Monitor でマイクロサービスを監視する Kubernetes Docker Application Container(Pod) アプリ監視 インフラ・ミドル
ウェア監視 Application Insights Azure Monitor for Containers OS VM マイクロサービス プラットフォーム
6. Azure Monitor でマイクロサービスを監視する
6. Azure Monitor でマイクロサービスを監視する
まとめ マイクロサービスを実現する手段は、Kubernetes だけではありません。 Kubernetes を採用するなら、シンプルな構成から始めましょう。
Microsoft Learn のお勧めコンテンツ https://aka.ms/k8s-learn-jp
None