RousselTMLEARNING

TP · Traefik: From Discovery to Expertise

Installation

Standard installation #

You will install Traefik on a VM.

  1. Choosing the lab environment

    For this installation, you will deploy a plain VM. So we'll use the 0_vm folder from our repository (see the 'setting up the test environment' lab):

    cd traefik-formation/tp/0_vm
  2. Creating the environment

    We'll create the environment on VirtualBox with the following Vagrant command

    vagrant up
  3. Connecting to the test environment

    We'll connect to the test environment with the following Vagrant command

    vagrant ssh traefik-formation
  4. Installing Traefik

    You must install Traefik on this VM and make sure it starts correctly. You must also set it to start automatically with the system.

  5. Destroying the environment

    Once you're done with the exercise, you can destroy the lab environment with the following Vagrant command

    vagrant destroy

Installing via Docker #

You will install Traefik as a Docker container.

  1. Choosing the lab environment

    For this installation, you will deploy a VM with Docker. So we'll use the 1_vm_docker folder from our repository (see the 'setting up the test environment' lab):

    cd traefik-formation/tp/1_vm_docker
  2. Creating the environment

    We'll create the environment on VirtualBox with the following Vagrant command

    vagrant up
  3. Connecting to the test environment

    We'll connect to the test environment with the following Vagrant command

    vagrant ssh traefik-formation
  4. Installing Traefik

    You must install Traefik on this VM as a Docker container. Start with 'docker run', but the most important part is being able to deploy it with Compose.

  5. Destroying the environment

    Once you're done with the exercise, you can destroy the lab environment with the following Vagrant command

    vagrant destroy

Installing on Minikube #

You will install Traefik on Kubernetes (single-node with Minikube).

  1. Choosing the lab environment

    For this installation, you will deploy a VM with Docker. So we'll use the 3_vm_minukube folder from our repository (see the 'setting up the test environment' lab):

    cd traefik-formation/tp/3_vm_minukube
  2. Creating the environment

    Follow the procedure that matches your OS to install Minikube.

  3. Installing Traefik

    You must install Traefik on this VM using the Helm package manager. Start with 'docker run', but the most important part is being able to deploy it with Compose.

  4. Destroying the environment

    Once you're done with the exercise, you can destroy the lab environment with the following Vagrant command

    vagrant destroy

Difficulty level : ●●○○○ (2/5)

My progress

  • ⏱ Estimated time : ≈ 1 h 38

🧪 Launch the lab environment ↗

Sign in to track your progress and take notes. Sign in

💬 Ask a question

Recommended Articles

HAProxy dans Kubernetes : L'Ingress Controller Haute Performance

Découvrez en profondeur l'intégration de HAProxy dans Kubernetes. Architecture Direct-to-Pod, opt...

Gestion des certificats SSL/TLS avec Let's Encrypt et ACME

Apprenez à automatiser la génération et le renouvellement de vos certificats SSL/TLS avec Let's E...

Protocole ACME : serveur ACME, challenges http-01 et dns-01, automatisation TLS

Comprendre le protocole ACME : rôle du serveur ACME (Let's Encrypt, ZeroSSL, step-ca), challenges...

Installation de HAProxy

Guide complet pour installer HAProxy sur les serveurs Linux (Debian, RedHat) et via des environne...

Traefik : sécuriser et transformer les requêtes avec les middlewares (BasicAuth, ForwardAuth…)

Les middlewares Traefik modifient les requêtes et réponses entre le routeur et le service : authe...

Traefik comme Ingress Controller pour Kubernetes (Helm, IngressRoute, Gateway API)

Installer Traefik dans Kubernetes avec Helm et publier des applications avec Ingress, les CRD Ing...

Traefik : les métriques avec Prometheus et OpenTelemetry

Exposer les métriques de Traefik (Prometheus ou OTLP), comprendre les séries par entrypoint, rout...

L'API de Traefik : inspecter la configuration et sécuriser le tableau de bord

Utiliser l'API REST de Traefik pour inspecter routeurs, services, middlewares et entrypoints, l'e...

Traefik : vue d'ensemble, architecture et premier déploiement

Découvrir Traefik : reverse proxy et load balancer cloud-native, entrypoints, routers, services, ...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!