Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
Platform Engineering from the CNCF Perspective
hhiroshell
0
8
Maximizing the Launch Reliability: Ensuring Stable Application Lift-off and Orbit on Kubernetes
hhiroshell
0
57
CNCFの視点で捉えるPlatform Engineering - 最新動向と展望 / Platform Engineering from the CNCF Perspective
hhiroshell
0
220
Cloud Native Scalability for Internal Developer Platforms
hhiroshell
5
750
LINEヤフーにおける超大規模プラットフォーム実現への挑戦と学び / Challenges and Lessons in Building an Ultra-Large-Scale Platform at LY Corporation
hhiroshell
3
1.7k
Architecting Kubernetes-Based Internal Developer Platforms: Essential Patterns and Practices
hhiroshell
0
260
Discover Your Tailored Platform Strategy with Real-World Practice
hhiroshell
1
270
Kubernetesでアプリの安定稼働と高頻度のアップデートを両立するためのプラクティス / Best Practices for Applications on Kubernetesto Achieve Both Frequent Updates and Stability
hhiroshell
11
4.4k
Platform EngineeringにおけるKubernetesの活用法とLINEヤフーにおける事例のご紹介 / Platform Engineering and Kubernetes Findy Lunch LT Edition
hhiroshell
7
2.6k
Other Decks in Technology
See All in Technology
DGX SparkでローカルLLMをLangChainで動かした話
ruzia
1
260
AI/MLのマルチテナント基盤を支えるコンテナ技術
pfn
PRO
4
680
その設計、 本当に価値を生んでますか?
shimomura
2
160
Active Directory 勉強会 第 6 回目 Active Directory セキュリティについて学ぶ回
eurekaberry
16
5.9k
私も懇親会は苦手でした ~苦手だからこそ懇親会を楽しむ方法~ / 20251127 Masaki Okuda
shift_evolve
PRO
4
540
オープンデータの内製化から分かったGISデータを巡る行政の課題
naokim84
2
1.3k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
9.9k
20251127 BigQueryリモート関数で作る、お手軽AIバッチ実行環境
daimatz
0
420
A Compass of Thought: Guiding the Future of Test Automation ( #jassttokai25 , #jassttokai )
teyamagu
PRO
1
160
知っていると得する!Movable Type 9 の新機能を徹底解説
masakah
0
200
Databricksによるエージェント構築
taka_aki
1
110
ECMAScript仕様の最新動向: プロセスの変化と仕様のトレンド
uhyo
2
420
Featured
See All Featured
Become a Pro
speakerdeck
PRO
30
5.7k
Balancing Empowerment & Direction
lara
5
780
Unsuck your backbone
ammeep
671
58k
Facilitating Awesome Meetings
lara
57
6.7k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Large-scale JavaScript Application Architecture
addyosmani
514
110k
Raft: Consensus for Rubyists
vanstee
140
7.2k
Side Projects
sachag
455
43k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.1k
Why Our Code Smells
bkeepers
PRO
340
57k
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