View on GitHub

Containers & Kubernetes Tutorial

Training on Containers and Kubernetes

On this repo you can find 10 different labs that allow you to gradually have an hands-on experience on containers (using Docker) and local Kubernetes cluster.

Navigate to https://tasb.github.io/docker-kubernetes-training/ to have access a better version of these instructions.

On this page

Prerequisites

To perform the labs on this repo you need to have the following software installed on your machine.

Windows

  1. Windows 10+ (Windows 11 is recommended)
  2. Windows Terminal
  3. Windows Subsystem for Linux
  4. Docker Desktop
  5. Configure WSL integration with Docker Desktop. More here
  6. Install Visual Studio Code (or other code editor of your preference)
  7. Enable Kubernetes on Docker Desktop (you may use any other kubernetes cluster at your choice)
  8. (Optional) Some VS Code extension helpful for Docker and Kubernetes integration

Ubuntu

  1. Ubuntu 20.04
  2. Docker. How to install Docker Engine on Ubuntu
  3. Minikube. How to install Minikube on Ubuntu
  4. Kubectl. How to install Kubectl on Ubuntu
  5. Install Visual Studio Code (or other code editor of your preference)
  6. (Optional) Some VS Code extension helpful for Docker and Kubernetes integration

This setup works on top of Windows Subsystem for Linux.

macOS

  1. Docker. Install Docker Desktop on Mac
  2. Minikube. How to install Minikube on Mac
  3. Kubectl. How to install Kubectl on Mac
  4. Install Visual Studio Code (or other code editor of your preference)
  5. (Optional) Some VS Code extension helpful for Docker and Kubernetes integration

Labs

On next links you may find the hands-on exercises to give you more experience on this topics.

You may navigate for each one individually or you may follow the sequence starting on first one and proceed to the next using the navigation links at the end of each lab.

  1. Introduction to containers
  2. How to create my own container
  3. Persistence in containers
  4. Let’s compose your containers
  5. Introduction to Kubernetes
  6. Deployment lifecycle
  7. Managing services
  8. Storage in Kubernetes
  9. Monitoring and Operation

ToDo App project

With this simple ToDo App you have the hands-on experience to create all needed artifacts to deploy an app on Kubernetes.

Slides

Get access to the content used to share Kubernetes concepts during sessions.

  1. Introduction to containers
  2. Dockerfile and Tags
  3. Persistence in containers
  4. Docker compose
  5. Introduction to Kubernetes
  6. Deployments & ReplicaSets
  7. Kubernetes services
  8. Storage in Kubernetes
  9. Monitoring and Operation
  10. Mini project

Feedback

For any feedback open up an issue describing what have you found and I’ll return to you!

Back to top…