This workshop is designed to give you a basic understanding of Kubernetes and how to deploy a simple python application using Kubernetes.
There are some prerequisites that you need to have installed on your machine before you can start with the workshop.
- The Kubernetes CLI (
kubectl
) - A Kubernetes Cluster (Docker Desktop or Podman Desktop (Kind))
To install the Kubernetes CLI, follow the instructions on the official Kubernetes documentation: [https://kubernetes.io/docs/tasks/tools/#kubectl]
Choose one of the following options to create a Kubernetes cluster on your machine:
- Download Docker desktop: [https://www.docker.com/products/docker-desktop/]
- In the Docker Desktop settings, go to the Kubernetes tab
- Check the box to enable Kubernetes and click the "Apply & Restart" button in the bottom right corner
- Download Podman desktop: [https://podman-desktop.io/]
- Open Podman Desktop and download Podman in the dashboard and make sure it is running:
- Next, download the Kind CLI [https://kind.sigs.k8s.io/docs/user/quick-start/#installation]
- Thereafter, go to the settings in Podman Desktop and create a new kind cluster
- Now click on "create" to create a cluster
You should be able to run the following commands in your terminal:
kubectl version
docker version
or
podman version
Check if you have a running Kubernetes cluster running the following command:
kubectl get nodes
A node called docker-desktop
or kind-control-plane
should be listed or similar.
The workshop is divided into three parts: