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
270
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
5分で知るMicrosoft Ignite
taiponrock
PRO
0
460
Bridging the Gap:Why Developer Relations and Product Management Must Work Together
taiponrock
PRO
0
45
What Four Approaches Taught Me About Developer Productivity
taiponrock
PRO
0
24
Automatic Creation of Azure Environment Configuration Diagrams! with Datadog Cloudcraft
taiponrock
PRO
0
77
VS Code の静的分析でリアルタイムのコードフィードバックを取得
taiponrock
PRO
0
180
Backstage of Enterprise Conference
taiponrock
PRO
1
220
どの種は何の花を咲かす?DevRelのターゲットオーディエンスを知ることの意味
taiponrock
PRO
2
390
Datadogの便利な使い方 - 意外と知らない?CoScreenとCloudcraft
taiponrock
PRO
1
1.9k
DatadogとPagerDutyで改善するシステム障害対応
taiponrock
PRO
0
800
Other Decks in Technology
See All in Technology
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
1
370
サラリーマンソフトウェアエンジニアのキャリア
yuheinakasaka
7
1.7k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
AWSと生成AIで学ぶ!実行計画の読み解き方とSQLチューニングの実践
yakumo
2
240
Bedrock AgentCore Evaluationsで学ぶLLM as a judge入門
shichijoyuhi
2
320
チームで安全にClaude Codeを利用するためのプラクティス / team-claude-code-practices
tomoki10
6
2.6k
Redshift認可、アップデートでどう変わった?
handy
1
130
AI時代のアジャイルチームを目指して ー スクラムというコンフォートゾーンからの脱却 ー / Toward Agile Teams in the Age of AI
takaking22
11
4.5k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.5k
Introduction to Bill One Development Engineer
sansan33
PRO
0
340
小さく、早く、可能性を多産する。生成AIプロジェクト / prAIrie-dog
visional_engineering_and_design
0
340
Node vs Deno vs Bun 〜推しランタイムを見つけよう〜
kamekyame
1
270
Featured
See All Featured
Crafting Experiences
bethany
0
25
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
120
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
360
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
29
Balancing Empowerment & Direction
lara
5
840
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
115
100k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
880
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
140
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Designing for humans not robots
tammielis
254
26k
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