Kubernetes Hands-on

Content:

Overview
1. Prepare the environment
2. Deploy ToDo app
3. Deploy MySQL
4. Connect ToDo with MySQL using Environment Variables
5. MySQL with Persistent Volumes
6. Connect ToDo with MySQL using ConfigMap
7. Connect ToDo with MySQL using ConfigMap and Secret
8. Kubernetes Dashboard

Lab 1: Prepare the environment

Get the code

Note: On bwLehrpool change into the PERSISTENCE directory before cloning the repository with the following command.

git clone https://github.com/Harald-U/kubernetes-handson.git
cd kubernetes-handson

Prepare Minikube

On bwLehrpool or systems with sufficient RAM start Minikube with this command:

minikube start --cpus 2 --memory 6144 --driver docker

which will assign 6 GB of RAM.

On memory constrained systems use this minimum setup:

minikube start --cpus 2 --memory 4096 --driver docker

This starts a very small Minikube instance with 2 CPUs and a mere 4 GB of RAM. On Linux and MacOS, Docker is the recommended driver for Minikube.


Next Step: Deploy ToDo stand-alone