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
Kubernetesでアプリケーションが動くまで
Search
hhiroshell
February 28, 2018
Technology
5
1.2k
Kubernetesでアプリケーションが動くまで
Kubernetesでアプリケーションが動くまで
hhiroshell
February 28, 2018
Tweet
Share
More Decks by hhiroshell
See All by hhiroshell
Kubernetes Multi-tenancy: Principles and Practices for Large Scale Internal Platforms
hhiroshell
0
150
Platform Engineering from the CNCF Perspective
hhiroshell
0
45
Maximizing the Launch Reliability: Ensuring Stable Application Lift-off and Orbit on Kubernetes
hhiroshell
0
70
CNCFの視点で捉えるPlatform Engineering - 最新動向と展望 / Platform Engineering from the CNCF Perspective
hhiroshell
0
250
Cloud Native Scalability for Internal Developer Platforms
hhiroshell
5
760
LINEヤフーにおける超大規模プラットフォーム実現への挑戦と学び / Challenges and Lessons in Building an Ultra-Large-Scale Platform at LY Corporation
hhiroshell
3
1.8k
Architecting Kubernetes-Based Internal Developer Platforms: Essential Patterns and Practices
hhiroshell
0
270
Discover Your Tailored Platform Strategy with Real-World Practice
hhiroshell
1
280
Kubernetesでアプリの安定稼働と高頻度のアップデートを両立するためのプラクティス / Best Practices for Applications on Kubernetesto Achieve Both Frequent Updates and Stability
hhiroshell
11
4.5k
Other Decks in Technology
See All in Technology
ルネサンス開発者を育てる 1on1支援AIエージェント
yusukeshimizu
0
130
#22 CA × atmaCup 3rd 1st Place Solution
yumizu
1
110
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
330
AWS re:Invent 2025 を振り返る
kazzpapa3
2
110
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
1
360
Redshift認可、アップデートでどう変わった?
handy
1
120
人工知能のための哲学塾 ニューロフィロソフィ篇 第零夜 「ニューロフィロソフィとは何か?」
miyayou
0
310
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
190
モノタロウ x クリエーションラインで実現する チームトポロジーにおける プラットフォームチーム・ ストリームアラインドチームの 効果的なコラボレーション
creationline
0
280
2025年のデザインシステムとAI 活用を振り返る
leveragestech
0
670
Scrum Guide Expansion Pack が示す現代プロダクト開発への補完的視点
sonjin
0
280
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
290
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
360
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Fireside Chat
paigeccino
41
3.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Applied NLP in the Age of Generative AI
inesmontani
PRO
3
2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
34
The Spectacular Lies of Maps
axbom
PRO
1
410
Visualization
eitanlees
150
16k
Ruling the World: When Life Gets Gamed
codingconduct
0
120
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
390
Deep Space Network (abreviated)
tonyrice
0
32
Transcript
Cloud Native Developers JP Kubernetesでアプリケーションが 動くまで @hhiroshell 1
Cloud Native Developers JP お品書き • アプリケーションを動かすための追加の予備知識 • 実際にやってみます 2
Cloud Native Developers JP アプリケーションを動かすための 追加の予備知識
Cloud Native Developers JP コンテナレジストリが必要 • コンテナレジストリから取得する • プライベートのレジストリを使うことも可能 k8sクラスター
>_ kubectl (CLI) コンテナ レジストリ > kubectl run …
Cloud Native Developers JP クラスター外からアクセスできるようにする方法 • クラスター外からPodにアクセスできるようにするには、用途に応 じて何通りかの方法がある – apiserver経由でのアクセス
– ServiceのNodePortタイプ – ServiceのLoadBarancerタイプ – Ingress (beta)
Cloud Native Developers JP APIサーバー経由でのアクセス • kubectlをproxyとして稼働させて、認証なしのAPIエンドポイントへ の経路を構成 • 所定のAPIエンドポイントにリクエストを投げるとPodに届く
• 主な用途はDashboardや監視ツール(Grafanaなど)へのアクセス k8sクラスター kubectl > kubectl proxy … >_ apiserver リクエスト
Cloud Native Developers JP ServiceのNodePortタイプ • 対象のPodにルーティングされる口を、各Node上に構成する • ポート番号は、各ノードで共通 クラスター外から
のリクエスト 172.17.8.104 172.17.8.103 172.17.8.102 172.17.8.104:30159 172.17.8.102:30159 172.17.8.103:30159
Cloud Native Developers JP ServiceのLoadBalancerタイプ • GCP, AWS, Azure上のロードバランサーを自動構成 •
クラスター内にはNodePortまたはClusterIPと同等のServiceを構成 クラスター外から のリクエスト LB
Cloud Native Developers JP Ingress • Webフロントとしての構成情報を設定するオブジェクト • ロードバランシング、SSL/TLS終端等の機能を提供 •
実際の動作を担う実態は、別途ReplicationControllerとしてデプロ イする必要がある – 例えば、NGINXを利用した、NGiNX Ingress Controllerがある • Betaなのでご注意(Kubernetes 1.9の時点)
Cloud Native Developers JP それではやってみます! もう一息…!
Cloud Native Developers JP 今からやる作業のチュートリアルを公開済みです • 「KubernetesでWeb-AP-DBの3層アプリケーションが動くまで」 – https://qiita.com/hhiroshell/items/5e81cac3e9c059029837 –
または[ qiita kubernetes 3層 ] くらいで検索するとトップに来ます 11
Cloud Native Developers JP 12 Fin