[TP] Test Environment


For this lab, we will present our Vagrant-based solution to create a local test environment.

What you will learn in this TP :

Oracle VM VirtualBox

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

You must install VirtualBox by following the procedure for 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 training.

You must install Vagrant by following the procedure for your system:

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

From concept to expertise

We have preconfigured a repo for the training.

  1. Git Repo

    You can use the command below to clone the repo:

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

    The test environment configurations are in the 'tp' folder. In this folder, there are several subfolders, each corresponding to a test environment: simple VM, VM with Docker, VM with application... Depending on the lab, we will specify which one to use:

    cd kubernetes-formation/tp/kind
  3. Creating the environment

    Once in the folder corresponding to the desired environment, you can start creating the environment on VirtualBox with the following Vagrant command:

    vagrant up
  4. Accessing the VM
    You can access the VM by running the following command:
    vagrant ssh kind-formation

Difficulty level: (1/5)