GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Speaker Deck
  • Sign up for free
  • All features
  • Private URLs
  • Password Protection
  • Custom URLS
  • Scheduled publishing
  • Remove Branding
  • Restrict embedding
  • Deck Collections
  • Notes
  • Featured decks
  • Featured speakers
  • Programming

This view

  • Original page
  • New address

GeezerVison is showing speakerdeck.com — Introduction to Traefik

Speaker Deck

Introduction to Traefik

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
waahhhh
May 20, 2019
Programming
510
0

Share


Embed

Start on current slide

Introduction to Traefik

Short introduction to Traefik in Version 1.

waahhhh

May 20, 2019

Transcript

15 slides
  1. Introduction to Traefik

  2. AGENDA AGENDA About Traefik Common Misunderstandings Compared to Nginx Example

    of use Using Docker & Docker-Compose Insight into V2
  3. ABOUT TRAEFIK ABOUT TRAEFIK HTTP Reverse Proxy & Load Balancer

    First commit: 2017-03 Written in Go Open to the community
  4. ABOUT TRAEFIK ABOUT TRAEFIK HTTP Reverse Proxy & Load Balancer

  5. COMMON MISUNDERSTANDINGS COMMON MISUNDERSTANDINGS It's not a webserver Has a

    built-in webserver for error pages (But nothing more!)
  6. COMPARED TO NGINX COMPARED TO NGINX Nginx Traefik Load Balancer

      Reverse Proxy   Webserver   Supports TCP & FastCGI  ¹ ¹ Traefik in Version 1.X
  7. 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
  8. BENEFITS OF TRAEFIK BENEFITS OF TRAEFIK Nginx Traefik Let's Encrypt

      Docker   Kubernetes   Dashboard   Dynamic Configuration  
  9. EXAMPLE OF USE EXAMPLE OF USE Live demo!

  10. 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
  11. 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
  12. docker-compose.yml whoami: image: emilevauge/whoami labels: - "traefik.frontend.rule=Host:whoami.localtest.me" 1 2 3

    4
  13. INSIGHT INTO V2 INSIGHT INTO V2 TCP Middlewares...

  14. THANK YOU! THANK YOU! Slack: Blog: Github: Tutorials: https://slack.traefik.io https://blog.containo.us

    https://github.com/containous/traefik Github: Awesome-Traefik
  15. WORKAROUND FOR FASTCGI WORKAROUND FOR FASTCGI https://github.com/containous/traefik/issues/753

You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.