RousselTMLEARNING

TP · Traefik: From Discovery to Expertise

Setting up the test environment

What you will learn in this TP
  • Install VirtualBox and Vagrant
  • Clone the course repository
  • Create and start a test environment
  • Connect to the virtual machines
Mode :

All steps and instructions are shown. Recommended for this lab: guided

Oracle VM VirtualBox #

Context. The whole Traefik course relies on identical test machines for every learner. You prepare, once and for all, this reproducible environment described in the course Git repository.

Prerequisites: VirtualBox and Vagrant installed, Git, 8 GB of free memory  ·  Estimated time: 20 min

We will use VirtualBox to deploy our test VMs. Some labs will be done with Docker, so if you already have a Docker engine you can use it instead of deploying a new VM.

Install VirtualBox by following the procedure that matches your system:

https://www.virtualbox.org/wiki/Downloads

Hashicorp Vagrant #

We will use Vagrant to automatically deploy test environments. To learn more about Vagrant, you can follow our dedicated course.

Install Vagrant by following the procedure that matches your system:

https://developer.hashicorp.com/vagrant/install

From concept to expertise #

We have preconfigured a repo for the course.

  1. Git repo

    You can use the command below to clone the repo:

    git clone https://github.com/RousselTM/traefik-formation.git
  2. Choosing the environment

    The test environment configurations are located in the tp folder. Inside, there are several subfolders, each corresponding to a test environment: plain VM, VM with Docker, VM with application... Each lab will specify which one to use:

    cd traefik-formation/tp/REP
  3. Creating the environment

    Once inside the folder matching the desired environment, you can start creating the environment on VirtualBox with the following Vagrant command

    vagrant up

Validate your work

Check that each goal above is reached and that you get the result described in the introduction.

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

My progress

  • ⏱ Estimated time : ≈ 20 min

🧪 Launch the lab environment ↗

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

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

Traefik: overview, architecture and first deployment

Discover Traefik: a cloud-native reverse proxy and load balancer, entrypoints, routers, services,...

Traefik: securing and transforming requests with middlewares (BasicAuth, ForwardAuth…)

Traefik middlewares modify requests and responses between the router and the service: BasicAuth a...

Traefik: providers (Docker, Kubernetes, Nomad, Consul, files, key-value stores)

Providers feed Traefik's dynamic configuration: service discovery for Docker, Swarm, Kubernetes, ...

Automated canary with Flagger and Traefik on Kubernetes

Automate canary deployments with Flagger and Traefik: the Canary resource, Prometheus metric anal...

Managing SSL/TLS certificates with Let's Encrypt and ACME

Learn how to automate the generation and renewal of your SSL/TLS certificates with Let's Encrypt....

The ACME protocol: ACME server, http-01 and dns-01 challenges, TLS automation

Understand the ACME protocol: the role of the ACME server (Let's Encrypt, ZeroSSL, step-ca), the ...

Traefik as an Ingress Controller for Kubernetes (Helm, IngressRoute, Gateway API)

Install Traefik in Kubernetes with Helm and publish applications with Ingress, the IngressRoute a...

Traefik: metrics with Prometheus and OpenTelemetry

Expose Traefik metrics (Prometheus or OTLP), understand the series per entrypoint, router and ser...

The Traefik API: inspecting configuration and securing the dashboard

Use Traefik's REST API to inspect routers, services, middlewares and entrypoints, expose it secur...

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!