RousselTMLEARNING

TP · Kubernetes: From Discovery to Expertise

Lab 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 Kubernetes 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 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

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 →

Course Glossary

Kubernetes

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

Recommended Articles

Kubernetes: architecture and components (control plane, nodes, objects)

Understand the Kubernetes architecture: API server, etcd, scheduler, controller manager, kubelet,...

kubectl cheat sheet: the essential commands

All the kubectl commands you need day to day: contexts, resources, logs, exec, port-forward, roll...

Container network security and Kubernetes networking

Secure the container network: how Docker and Kubernetes networking works, CNI, default-deny Netwo...

HAProxy in Kubernetes: the high-performance Ingress Controller

Discover in depth how HAProxy integrates with Kubernetes: direct-to-pod architecture, hot update ...

Prometheus on Kubernetes and the Prometheus web interface

Deploy Prometheus on Kubernetes with kube-prometheus-stack (Prometheus Operator, ServiceMonitor, ...

Kubernetes: Pods, ReplicaSets and Deployments (deploying and updating)

Master Kubernetes workloads: anatomy of a pod, ReplicaSet, Deployment, RollingUpdate and Recreate...

Kubernetes: exposing your applications (Services, Ingress and Gateway API)

Expose applications in Kubernetes: ClusterIP/NodePort/LoadBalancer Services, Ingress, IngressClas...

Securing Kubernetes: RBAC, NetworkPolicies, container network security and Pod Security

Securing Kubernetes: RBAC (Role, ClusterRole, bindings), ServiceAccounts, NetworkPolicies, Pod Se...

Workload controllers

An overview of workload controllers in Kubernetes, their functions and use cases.

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!