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
250
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
Automatic Creation of Azure Environment Configuration Diagrams! with Datadog Cloudcraft
taijihagino
PRO
0
43
VS Code の静的分析でリアルタイムのコードフィードバックを取得
taijihagino
PRO
0
87
Backstage of Enterprise Conference
taijihagino
PRO
1
170
どの種は何の花を咲かす?DevRelのターゲットオーディエンスを知ることの意味
taijihagino
PRO
2
250
Datadogの便利な使い方 - 意外と知らない?CoScreenとCloudcraft
taijihagino
PRO
1
1.5k
DatadogとPagerDutyで改善するシステム障害対応
taijihagino
PRO
0
610
ソフトウェアチームのパフォーマンスを向上させる鍵: パイプラインのオブザーバービリティ
taijihagino
PRO
1
130
エンドツーエンドの可視性を実現するクエスト
taijihagino
PRO
1
440
JDDUG (Japan Datadog User Group)始動の舞台裏
taijihagino
PRO
2
320
Other Decks in Technology
See All in Technology
Nekko Cloud、 これまでとこれから ~学生サークルが作る、 小さなクラウド
logica0419
2
730
事業継続を支える自動テストの考え方
tsuemura
0
300
偶然 × 行動で人生の可能性を広げよう / Serendipity × Action: Discover Your Possibilities
ar_tama
1
740
エンジニアの育成を支える爆速フィードバック文化
sansantech
PRO
3
670
サーバーレスアーキテクチャと生成AIの融合 / Serverless Meets Generative AI
_kensh
12
3k
5分で紹介する生成AIエージェントとAmazon Bedrock Agents / 5-minutes introduction to generative AI agents and Amazon Bedrock Agents
hideakiaoyagi
0
220
管理者しか知らないOutlookの裏側のAIを覗く#AzureTravelers
hirotomotaguchi
2
240
Ask! NIKKEIの運用基盤と改善に向けた取り組み / NIKKEI TECH TALK #30
kaitomajima
1
450
Developers Summit 2025 浅野卓也(13-B-7 LegalOn Technologies)
legalontechnologies
PRO
0
150
MC906491 を見据えた Microsoft Entra Connect アップグレード対応
tamaiyutaro
1
480
High Performance PHP
cmuench
0
140
APIファーストで実現する運用性の高い IoT プラットフォーム: SORACOMのアプローチ
soracom
PRO
0
240
Featured
See All Featured
Code Review Best Practice
trishagee
66
17k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
8
270
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.5k
A better future with KSS
kneath
238
17k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.3k
Fireside Chat
paigeccino
34
3.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
Bash Introduction
62gerente
610
210k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
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