The following tools will be helpful to hack on the project:
- SDKMAN! (JDK version manager)
- kind (quickly setup a local Kubernetes cluster)
- JMeter (performance testing harness)
This repository has two branches:
main
- this branch is the starting point for the coding demograceful-shutdown-support
- this branch contains the changes made to the codebase to support graceful shutdowns during the demo
-
Install Java 11
sdk install java 11.0.2-open
-
Create a Kubernetes cluster with kind
kind create cluster --config kind.config.yaml
-
Build the Docker image:
./gradlew jibDockerBuild
-
Load the Docker image into the kind cluster:
kind load docker-image cross-the-streams:0.0.1
-
Deploy to the kind cluster:
kubectl apply -f k8s/
-
Access the
/speakers
REST API:curl -i http://localhost:8080/speakers
-
Launch JMeter and open
cross-the-streams.jmx