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

Bonnes pratiques Traefik : sécurité, haute disponibilité et observabilité

Bonnes pratiques Traefik : sécurisation du dashboard et du socket Docker, TLS moderne, middleware...

Traefik : les providers (Docker, Kubernetes, Nomad, Consul, fichiers, clés-valeurs)

Les providers alimentent la configuration dynamique de Traefik : découverte des services Docker, ...

Les plugins Traefik : l'exemple de CrowdSec pour bloquer les attaques

Étendre Traefik avec des plugins (catalogue officiel, interpréteur Yaegi), puis protéger ses appl...

Traefik : les logs (journaux applicatifs et access logs)

Configurer les deux journaux de Traefik : le journal de fonctionnement (niveaux, format) et les a...

Traefik : le tracing distribué avec OpenTelemetry

Activer le tracing de Traefik v3 avec OpenTelemetry (OTLP), propager le contexte W3C vers les app...

Stratégies de déploiement avec Traefik : blue/green, canary et rolling

Mettre en œuvre les stratégies de déploiement avec Traefik : rolling update par l'orchestrateur, ...

Canary automatisé avec Flagger et Traefik sur Kubernetes

Automatiser les déploiements canary avec Flagger et Traefik : ressource Canary, analyse des métri...

HAProxy comme Ingress Controller Kubernetes : Le Guide de Production

Découvrez comment utiliser HAProxy comme Ingress Controller dans Kubernetes. Architecture Direct-...

Maîtriser les ACLs dans HAProxy : Le Guide Complet

Guide complet sur les ACLs HAProxy : apprenez à configurer le routage intelligent, le contrôle d'...

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!