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
Introduction to Traefik
Search
waahhhh
May 20, 2019
Programming
0
400
Introduction to Traefik
Short introduction to Traefik in Version 1.
waahhhh
May 20, 2019
Tweet
Share
Other Decks in Programming
See All in Programming
JetBrainsのAI機能の紹介 #jjug
yusuke
0
180
中級グラフィックス入門~効率的なメッシュレット描画~
projectasura
4
2.4k
Understanding Kotlin Multiplatform
l2hyunwoo
0
250
知って得する@cloudflare_vite-pluginのあれこれ
chimame
1
140
変化を楽しむエンジニアリング ~ いままでとこれから ~
murajun1978
0
660
階層化自動テストで開発に機動力を
ickx
1
470
Vibe Codingの幻想を超えて-生成AIを現場で使えるようにするまでの泥臭い話.ai
fumiyakume
21
10k
The Niche of CDK Grant オブジェクトって何者?/the-niche-of-cdk-what-isgrant-object
hassaku63
1
750
ソフトウェア設計とAI技術の活用
masuda220
PRO
25
7.3k
副作用と戦う PHP リファクタリング ─ ドメインイベントでビジネスロジックを解きほぐす
kajitack
3
510
AIのメモリー
watany
12
1.2k
DatadogのArchived LogsをSnowflakeで高速に検索する方法(Archive Searchでオワコンにならないことを祈って) / How to search Datadog Archived Logs quickly with Snowflake (hoping Datadog Archive Search doesn’t make this obsolete)
civitaspo
0
110
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Writing Fast Ruby
sferik
628
62k
How GitHub (no longer) Works
holman
314
140k
A Modern Web Designer's Workflow
chriscoyier
695
190k
Navigating Team Friction
lara
188
15k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
Rails Girls Zürich Keynote
gr2m
95
14k
Designing Experiences People Love
moore
142
24k
RailsConf 2023
tenderlove
30
1.2k
Practical Orchestrator
shlominoach
190
11k
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