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)