Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Kubernetesでアプリケーションが動くまで
Search
hhiroshell
February 28, 2018
Technology
1.2k
5
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Kubernetesでアプリケーションが動くまで
Kubernetesでアプリケーションが動くまで
hhiroshell
February 28, 2018
Transcript
12 slides
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
More Decks by hhiroshell
See All by hhiroshell
Maximizing Launch Reliability: Controlled Lift-off for Reliable Application Startup on Kubernetes
hhiroshell
0
160
Kubernetes Multi-tenancy: Principles and Practices for Large Scale Internal Platforms
hhiroshell
0
340
Platform Engineering from the CNCF Perspective
hhiroshell
0
110
Maximizing the Launch Reliability: Ensuring Stable Application Lift-off and Orbit on Kubernetes
hhiroshell
0
160
CNCFの視点で捉えるPlatform Engineering - 最新動向と展望 / Platform Engineering from the CNCF Perspective
hhiroshell
0
480
Cloud Native Scalability for Internal Developer Platforms
hhiroshell
5
1k
LINEヤフーにおける超大規模プラットフォーム実現への挑戦と学び / Challenges and Lessons in Building an Ultra-Large-Scale Platform at LY Corporation
hhiroshell
3
2k
Architecting Kubernetes-Based Internal Developer Platforms: Essential Patterns and Practices
hhiroshell
0
380
Discover Your Tailored Platform Strategy with Real-World Practice
hhiroshell
1
330
Other Decks in Technology
See All in Technology
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
510
Kubernetes, Agones, WebRTC, GPU で作る クラウドゲーミング基盤を本番運用に乗せるまで
vivion
0
270
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
480
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
3
260
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
210
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
160
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
270
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
270
Gov-JAWS#9 統合監視機能のマネージドサービス化+AIによる障害時自動調査
fj_yoshimura_kosuke
0
230
Go でトランザクション、どう書いてますか?
knwoop
1
560
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
290
異夢同船〜異なる夢でも同じ船でなんとかする〜
fortegp05
1
590
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
390
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
Side Projects
sachag
456
43k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Product Roadmaps are Hard
iamctodd
55
13k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
Are puppies a ranking factor?
jonoalderson
2
4.2k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
620
The Pragmatic Product Professional
lauravandoore
37
7.5k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340