$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Traefik
Search
waahhhh
May 20, 2019
Programming
0
430
Introduction to Traefik
Short introduction to Traefik in Version 1.
waahhhh
May 20, 2019
Tweet
Share
Other Decks in Programming
See All in Programming
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
730
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
320
JETLS.jl ─ A New Language Server for Julia
abap34
1
410
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
0
110
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
350
認証・認可の基本を学ぼう後編
kouyuume
0
240
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
110
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
120
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
720
sbt 2
xuwei_k
0
300
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
250
関数実行の裏側では何が起きているのか?
minop1205
1
700
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1032
470k
A Tale of Four Properties
chriscoyier
162
23k
The Pragmatic Product Professional
lauravandoore
37
7.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
70k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Visualization
eitanlees
150
16k
Side Projects
sachag
455
43k
Why Our Code Smells
bkeepers
PRO
340
57k
Mobile First: as difficult as doing things right
swwweet
225
10k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Six Lessons from altMBA
skipperchong
29
4.1k
Transcript
Introduction to Traefik
AGENDA AGENDA About Traefik Common Misunderstandings Compared to Nginx Example
of use Using Docker & Docker-Compose Insight into V2
ABOUT TRAEFIK ABOUT TRAEFIK HTTP Reverse Proxy & Load Balancer
First commit: 2017-03 Written in Go Open to the community
ABOUT TRAEFIK ABOUT TRAEFIK HTTP Reverse Proxy & Load Balancer
COMMON MISUNDERSTANDINGS COMMON MISUNDERSTANDINGS It's not a webserver Has a
built-in webserver for error pages (But nothing more!)
COMPARED TO NGINX COMPARED TO NGINX Nginx Traefik Load Balancer
Reverse Proxy Webserver Supports TCP & FastCGI ¹ ¹ Traefik in Version 1.X
COMPARED TO NGINX COMPARED TO NGINX BENCHMARK BENCHMARK Source: Traefik
is obviously slower than Nginx, but not so much: Traefik can serve 28392 requests/sec and Nginx 33591 requests/sec which gives a ratio of 85%. Not bad for young project :) ! https://docs.traefik.io/v1.5/benchmarks
BENEFITS OF TRAEFIK BENEFITS OF TRAEFIK Nginx Traefik Let's Encrypt
Docker Kubernetes Dashboard Dynamic Configuration
EXAMPLE OF USE EXAMPLE OF USE Live demo!
docker-compose.yml version: "3.7" services: traefik: image: traefik:alpine ports: - "80:80"
labels: - "traefik.frontend.rule=Host:traefik.localtest.me" - "traefik.port=8080" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ./traefik.toml:/etc/traefik/traefik.toml 1 2 3 4 5 6 7 8 9 10 11 12 13
traefik.toml defaultEntryPoints = ["http"] [entryPoints] [entryPoints.http] address = ":80" [docker]
endpoint = "unix:///var/run/docker.sock" watch = true exposedByDefault = true swarmMode = false [api] entryPoint = "traefik" adress = ":8080" dashboard = true 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
docker-compose.yml whoami: image: emilevauge/whoami labels: - "traefik.frontend.rule=Host:whoami.localtest.me" 1 2 3
4
INSIGHT INTO V2 INSIGHT INTO V2 TCP Middlewares...
THANK YOU! THANK YOU! Slack: Blog: Github: Tutorials: https://slack.traefik.io https://blog.containo.us
https://github.com/containous/traefik Github: Awesome-Traefik
WORKAROUND FOR FASTCGI WORKAROUND FOR FASTCGI https://github.com/containous/traefik/issues/753