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
Java Spring Boot on K8s with C4C
Search
Taiji HAGINO
PRO
February 22, 2019
Technology
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Java Spring Boot on K8s with C4C
本資料はOSC東京2019春にて登壇した資料になります。
Taiji HAGINO
PRO
February 22, 2019
More Decks by Taiji HAGINO
See All by Taiji HAGINO
なぜデベロッパーアドボカシーが必要なのか?
taiponrock
PRO
0
200
Datadogで実現するマルチレイヤーObservability入門
taiponrock
PRO
0
180
Datadog Cloud Cost Management で実現するFinOps
taiponrock
PRO
0
400
5分で知るMicrosoft Ignite
taiponrock
PRO
0
580
Bridging the Gap:Why Developer Relations and Product Management Must Work Together
taiponrock
PRO
0
110
What Four Approaches Taught Me About Developer Productivity
taiponrock
PRO
0
67
Automatic Creation of Azure Environment Configuration Diagrams! with Datadog Cloudcraft
taiponrock
PRO
0
110
VS Code の静的分析でリアルタイムのコードフィードバックを取得
taiponrock
PRO
0
280
Backstage of Enterprise Conference
taiponrock
PRO
1
280
Other Decks in Technology
See All in Technology
味覇で作るパスタが美味い - 20261001_yabaubuki.dev
livesense
PRO
0
120
今さら理解するウェブフォントver.2026
takanorip
3
660
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
260
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.3k
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
150
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
300
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
360
USB PDを使ってスマホを労わりたい
raspython3
0
160
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
Cognition AI Japan - ウェビナー2_テストQA_運用監視
cogakira
0
130
AI時代のPRレビューにどう向き合うか?
kairim0
1
170
Loop Engineering これくらいでいい
mikanichinose
0
210
Featured
See All Featured
A better future with KSS
kneath
240
18k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
Rails Girls Zürich Keynote
gr2m
96
14k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
940
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Marketing to machines
jonoalderson
1
5.9k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Side Projects
sachag
456
43k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
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