[TP] Lab Environment


In 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.

Please proceed with the VirtualBox installation 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.

Please proceed with the Vagrant installation 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. Environment Choice

    Test environment configurations are located in the tp folder. This folder contains 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. Environment Creation

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

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

Difficulty level: (1/5)

Course Glossary

Kubernetes

An open-source container orchestration engine (sometimes called K8s) for automating the deployment, scaling, and management of containerized applicati...