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
1.2k
5
Share
Kubernetesでアプリケーションが動くまで
Kubernetesでアプリケーションが動くまで
hhiroshell
February 28, 2018
More Decks by hhiroshell
See All by hhiroshell
Kubernetes Multi-tenancy: Principles and Practices for Large Scale Internal Platforms
hhiroshell
0
220
Platform Engineering from the CNCF Perspective
hhiroshell
0
76
Maximizing the Launch Reliability: Ensuring Stable Application Lift-off and Orbit on Kubernetes
hhiroshell
0
100
CNCFの視点で捉えるPlatform Engineering - 最新動向と展望 / Platform Engineering from the CNCF Perspective
hhiroshell
0
320
Cloud Native Scalability for Internal Developer Platforms
hhiroshell
5
860
LINEヤフーにおける超大規模プラットフォーム実現への挑戦と学び / Challenges and Lessons in Building an Ultra-Large-Scale Platform at LY Corporation
hhiroshell
3
1.9k
Architecting Kubernetes-Based Internal Developer Platforms: Essential Patterns and Practices
hhiroshell
0
300
Discover Your Tailored Platform Strategy with Real-World Practice
hhiroshell
1
300
Kubernetesでアプリの安定稼働と高頻度のアップデートを両立するためのプラクティス / Best Practices for Applications on Kubernetesto Achieve Both Frequent Updates and Stability
hhiroshell
11
4.9k
Other Decks in Technology
See All in Technology
Purview Endpoint DLP 動かしてみた
kozakigh
0
330
エンタープライズの厳格な制約を開発者に意識させない:クラウドネイティブ開発基盤設計/cloudnative-kaigi-golden-path
mhrtech
0
390
SLI/SLO、「完全に理解した」から「チョットデキル」へ
maruloop
3
350
[Scram Fest Niigata2026]Quality as Code〜AIにQAの思考を再現させる試み〜
masamiyajiri
1
310
「背中を見て育て」からの卒業 〜専門技術としてのテスト設計を軸に、品質保証のバトンを繋ぐ〜 #genda_tech_talk
nihonbuson
PRO
3
1.2k
会社説明資料|株式会社ギークプラス ソフトウェア事業部
geekplus_tech
0
220
「強制アップデート」か「チームの自律」か?エンタープライズが辿り着いたプラットフォームのハイブリッド運用/cloudnative-kaigi-hybrid-platform-operations
mhrtech
0
170
AI駆動開発で生産性を追いかけたら、行き着いたのは品質とシフトレフトだった
littlehands
0
480
Oracle Cloud Infrastructure presents managed, serverless MCP Servers for Oracle AI Database
thatjeffsmith
0
220
AIが盛んな時代に 技術記事を書き始めて起きた私の中での小さな変化
peintangos
0
370
要件定義の精度を高めるための型と生成AIの活用 / Using Types and Generative AI to Improve the Accuracy of Requirements Definition
haru860
0
320
変化の激しい時代をゴキゲンに生き抜くために 〜ストレスマネジメントのススメ〜
kakehashi
PRO
5
1.3k
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
170
Marketing to machines
jonoalderson
1
5.2k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
180
エンジニアに許された特別な時間の終わり
watany
106
240k
Google's AI Overviews - The New Search
badams
0
1k
The Curious Case for Waylosing
cassininazir
0
340
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Claude Code のすすめ
schroneko
67
220k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
340
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