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
Java Spring Boot on K8s with C4C
Search
Taiji HAGINO
PRO
February 22, 2019
Technology
0
260
Java Spring Boot on K8s with C4C
本資料はOSC東京2019春にて登壇した資料になります。
Taiji HAGINO
PRO
February 22, 2019
Tweet
Share
More Decks by Taiji HAGINO
See All by Taiji HAGINO
Bridging the Gap:Why Developer Relations and Product Management Must Work Together
taiponrock
PRO
0
38
What Four Approaches Taught Me About Developer Productivity
taiponrock
PRO
0
15
Automatic Creation of Azure Environment Configuration Diagrams! with Datadog Cloudcraft
taiponrock
PRO
0
66
VS Code の静的分析でリアルタイムのコードフィードバックを取得
taiponrock
PRO
0
160
Backstage of Enterprise Conference
taiponrock
PRO
1
210
どの種は何の花を咲かす?DevRelのターゲットオーディエンスを知ることの意味
taiponrock
PRO
2
370
Datadogの便利な使い方 - 意外と知らない?CoScreenとCloudcraft
taiponrock
PRO
1
1.9k
DatadogとPagerDutyで改善するシステム障害対応
taiponrock
PRO
0
780
ソフトウェアチームのパフォーマンスを向上させる鍵: パイプラインのオブザーバービリティ
taiponrock
PRO
1
170
Other Decks in Technology
See All in Technology
webpack依存からの脱却!快適フロントエンド開発をViteで実現する #vuefes
bengo4com
4
3.4k
From Natural Language to K8s Operations: The MCP Architecture and Practice of kubectl-ai
appleboy
0
230
現場の壁を乗り越えて、 「計装注入」が拓く オブザーバビリティ / Beyond the Field Barriers: Instrumentation Injection and the Future of Observability
aoto
PRO
1
610
FinOps について (ちょっと) 本気出して考えてみた
skmkzyk
0
220
AIプロダクトのプロンプト実践テクニック / Practical Techniques for AI Product Prompts
saka2jp
0
110
AI-Readyを目指した非構造化データのメダリオンアーキテクチャ
r_miura
1
330
ソフトウェアエンジニアの生成AI活用と、これから
lycorptech_jp
PRO
0
910
ストレージエンジニアの仕事と、近年の計算機について / 第58回 情報科学若手の会
pfn
PRO
3
850
RemoteFunctionを使ったコロケーション
mkazutaka
1
120
OSSで50の競合と戦うためにやったこと
yamadashy
3
990
CNCFの視点で捉えるPlatform Engineering - 最新動向と展望 / Platform Engineering from the CNCF Perspective
hhiroshell
0
140
OpenTelemetry が拡げる Gemini CLI の可観測性
phaya72
2
2.3k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Building a Modern Day E-commerce SEO Strategy
aleyda
44
7.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
The Language of Interfaces
destraynor
162
25k
Code Reviewing Like a Champion
maltzj
526
40k
Writing Fast Ruby
sferik
630
62k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
4 Signs Your Business is Dying
shpigford
185
22k
The Cost Of JavaScript in 2023
addyosmani
55
9.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.5k
Transcript
Java Spring Boot on Kubernetes Taiji HAGINO Developer Advocate /
[email protected]
SPEAKER
Taiji HAGINO IBM Developer Advocate Specialist in Node-RED/Node.js, Swift @taiponrock
f t in
IBM DEVELOPER ADVOCATE
TECHNOLOGISTS RULE THE WORLD
# "! $ %
OUR ACTIVITIES a
B c d P S D D M D N
TOKYO CITY TEAM Tokyo Team is a part of Worldwide
Developer Advocate Teams!
Yes, we are DeveloperAdvocate https://developer.ibm.com/code/community/advocates/
Java
,, (&& Ph deS R (&& (&&( . (&&( (&&)
29J9 aV7 JB 27 02. (&&) (&&* 29J9 1B9 1B9 6 CE (&&* (&&, 29J9 b V g (&&, F F E A 4 A 7 N R V- E fS29J9i P O
SpringBoot
B
) (
( 3. ) / ( . ()( 3. . /
//
-- . - /
Web
https://developer.ibm.com/jp/patterns/deploy-spring-boot-microservices-on-kubernetes-4/
None
,2% &% •IBM Cloud Kubernetes Service (IKS): IBM Cloud-( !&%
&$&#% & •Compose for MySQL: &%&.*RDB •IBM Cloud FuncAons: &&$ & " %!%+1 &&) /'0FaaS (FuncAon as a Service) 3
•Kubernetes MinikubeICPIKS •Slack Incoming Webhook •IBM Cloud Functions
CLI
% 1. Clone 2. 3. Spring Boot
Microservices 4. IBM Cloud Functions$# ("!) 5. Microservices 6.
Clone $ git clone https://github.com/IBM/spring-boot-microservices-on- kubernetes
Kubernetes on IBM Cloud
IBM CloudKubernetes
IBM CloudKubernetes
IBM CloudKubernetes
DB
MySQL $ kubectl create -f account-database.yaml service "account-database" created deployment
"account-database" created $ kubectl apply -f secrets.yaml secret "demo-credentials" created IBM Cloud Compose for MySQL DB or
MySQL $ kubectl create -f account-database.yaml service "account-database" created deployment
"account-database" created $ kubectl apply -f secrets.yaml secret "demo-credentials" created IBM Cloud Compose for MySQL DB or
None
Java
Create the Spring Boot Microservices Maven $ brew install
maven $ mvn --version Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T03:41:47+09:00)
Maven& #" MavenJava #-( ,. +' Docker" " %*
Docker!$,.)/ Go to containers/compute-interest-api $ mvn package Go to containers/send-notification $ mvn package
Docker
DockerSpringBoot IBM Cloud Container Registry ! Docker hub
! Docker hub $ docker build -t $DOCKERHUB_USERNAME/compute-interest-api:latest containers/compute-interest-api/ $ docker build -t $DOCKERHUB_USERNAME/send-notification:latest containers/send-notification/ $ docker push $DOCKERHUB_USERNAME/compute-interest-api:latest $ docker push $DOCKERHUB_USERNAME/send-notification:latest
Kubernetes
compute-interest-api.yaml send-notification.yaml Docker
# compute-interest-api.yaml spec: containers: - image: <your image> # send-notification.yaml spec: containers: - image: <your image>
Spring Boot Microservices $ kubectl apply -f compute-interest-api.yaml service "compute-interest-api"
created deployment "compute-interest- api" created $ kubectl apply -f send-notification.yaml service "send-notification" created deployment "send-notification" created
None
Frontend service $ kubectl apply -f account-summary.yaml service "account-summary"
created deployment "account-summary" created Node.js Web
None
Transaction Generator $ kubectl apply -f transaction-generator.yaml service "transaction-generator" created
deployment "transaction- generator" created Python
None
Public IP $ ibmcloud cs workers <name-of-cluster> $ kubectl get
service account-summary
Public IP + account-summary 184.173.47.69:30080
None
None
https://code-and-response.connpass.com/event/121314/
github.com/taijihagino Taiji HAGINO Developer Advocate IBM THANKS! facebook.com/taiponrock f t
in linkedin.com/taiponrock @taiponrock
58 DOC ID / Month XX, 2018 / © 2018
IBM Corporation