Requirements and Setup

Java JDK

You need a Java JDK version 17 or higher

Kubernetes

In general, you should be able to run all demos on current Kubernetes cluster versions at least supporting pod security contexts. For supporting Pod Security Admission you need at least Kubernetes version 1.23.

Local

For local Kubernetes provisioning you may use one of the following:

For installation just follow the instructions on the K3sarrow-up-right or Minikubearrow-up-right web sites.

Minikube

To start Minikube just type:

minikube start

If you want to use local images to be deployed to minikube then you need to point the docker registry to the one inside minikube.

With a docker ps command you can check if you are using the intended docker registry.

You can stop Minikube again using:

For full details please consult the minikube docsarrow-up-right

K3s

For Linux users the easiest way to provision a Kubernetes locally is done as follows:

After waiting for a short time (takes maybe about 30 seconds) you have a Kubernetes cluster ready to use. Just try this to make sure it works:

Unfortunately as of now this requires root privileges. Currently, K3s provides Rootless support only as an experimental feature.

To stop the Kubernetes server just type:

To stop it and get rid of the installation just type:

Managed Kubernetes Cluster

To use all features of an enterprise grade Kubernetes cluster you have to go into the cloud and use one of the well-known providers:

Google GKE

The gke-provisioning directory contains scripts to create a kubernetes cluster on Google cloud GKE. There is also a script to update the cluster to enable pod security policy.

To use the scripts you must have the Google cloud cli installed and be logged in to GCP.

Please update the provided scripts according to your google cloud project and the target zone you want to use before executing these!

Last updated