Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Consul use case
k.yanagimoto
April 04, 2019
Technology
1
140
Consul use case
Share about Hashicorp Consul in our group.
k.yanagimoto
April 04, 2019
Tweet
Share
More Decks by k.yanagimoto
See All by k.yanagimoto
cloudnative days tokyo online 2021 - 311
kyanagimoto
0
150
open telemetry w/ Ruby
kyanagimoto
0
84
nikotama.rb #10
kyanagimoto
0
170
Developers Summit 2020 - 13-A-5
kyanagimoto
0
1.7k
Nikotama.rb #9
kyanagimoto
0
150
Nikotama.rb #8
kyanagimoto
0
94
CNCF for Rubyist
kyanagimoto
0
180
Nikotama.rb #7
kyanagimoto
0
190
Rails6 New Functions
kyanagimoto
0
100
Other Decks in Technology
See All in Technology
220628 「Google AppSheet」タスク管理アプリをライブ作成 吉積情報伊藤さん
comucal
PRO
0
230
What's Data Lake ? Azure Data Lake best practice
ryomaru0825
2
750
JUnit5.7, 5.8の新機能紹介 #jjug_ccc #jjug_ccc_b / junit 5.7, 5.8 new features
kyonmm
PRO
2
420
Build 2022で発表されたWindowsアプリ開発のあれこれ振り返ろう
hatsunea
1
380
インフラのCI/CDはGitHub Actionsに任せた
mihyon
0
110
The Fractal Geometry of Software Design
vladikk
1
1.2k
2024卒_freee_エンジニア職(ポテンシャル採用)_説明資料
freee
0
260
【SAP知らない人向け】SAP on AWS 個人学習メモ/sap-on-aws-study
emiki
3
2.3k
Citizen 개발기
outsider
0
280
OpsJAWS Meetup21 システム運用アンチパターンのすすめ
yoshiiryo1
0
1.5k
Strategyパターン
hankehly
0
140
HoloLens2とMetaQuest2どちらも動くWebXRアプリをBabylon.jsで作る
iwaken71
0
200
Featured
See All Featured
Designing for Performance
lara
597
63k
The Language of Interfaces
destraynor
148
20k
Teambox: Starting and Learning
jrom
123
7.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
225
120k
Building Flexible Design Systems
yeseniaperezcruz
310
34k
How New CSS Is Changing Everything About Graphic Design on the Web
jensimmons
213
11k
Raft: Consensus for Rubyists
vanstee
126
5.4k
Clear Off the Table
cherdarchuk
79
280k
Large-scale JavaScript Application Architecture
addyosmani
499
110k
How GitHub (no longer) Works
holman
296
140k
jQuery: Nuts, Bolts and Bling
dougneiner
56
6.4k
From Idea to $5000 a Month in 5 Months
shpigford
373
44k
Transcript
Consul use case Apr 4, 2019 Koichi Yanagimoto EC Incubation
Development Dept. Rakuten, Inc.
Today’s Topic Today’s topic
Who am I ? Koichi Yanagimoto @kyanagimoto Application Engineer Rakuten,
Inc.
4 Consul? Service Discovery Service Segmentation Service Configuration
5 Consul?
6 Our use case
7 Our use case consul agent consul agent { "service":
{ "name": "varnish" } } consul_service.json consul agent -data-dir=/consul/data -retry-join=consul.server.ip -client=0.0.0.0
8 Our use case consul agent consul agent consul template
consul-template \ -template "squid.ctmpl:/etc/squid.conf:/etc/squid/sbin/squid -f /etc/squid.conf -k reconfigure"
9 Squid.ctmpl http_port 80 accel http_port 81 accel vport=80 {{
range service "varnish" }} cache_peer {{ .Address }} parent 8080 0 carp proxy-only no-digest no-query no-netdb-exchange weight=100 originserver {{ end }} include /etc/squid/image_space_common.conf cache_access_log /var/log/squid/access_image_space.log access_log_format cache_log /var/log/squid/response_image_space.log responce_log_format cache_swap_log /var/log/squid/cache_swap_image_space.log pid_filename /var/run/squid_image.pid
10 Our use case Kubernetes
11 DEMO
None