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
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/DownloadsHashicorp 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/installFrom concept to expertise #
We have preconfigured a repo for the course.
Git repo
You can use the command below to clone the repo:
git clone https://github.com/RousselTM/traefik-formation.gitChoosing 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/REPCreating 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
🧪 Launch the lab environment ↗
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
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...