One API, from Kotlin to the cloud
Local path: Kotlin → Docker → Kubernetes → Helm → recovery. Terraform and Azure are optional. Allow 90–120 minutes and record the observations from each stage.
Download the files; preserve the paths
1. Build one Kotlin API
Local terminal · not executed in the browserRun in your local terminal
- Before starting
- Install the tools listed below and use a dedicated learning folder and cluster.
- What it proves
- Compare actual output with the expected evidence below; this page does not execute commands.
- When finished
- Follow the final cleanup step. Stop foreground processes and remove only resources created for this lab.
Install JDK 21 and the Kotlin JVM compiler. Save the files with their listed relative paths in a new folder. This deliberately small JDK HTTP server teaches deployment, not a production API framework. Commands use Bash/zsh.
java -version
kotlinc -version
kotlinc Main.kt -jvm-target 21 -include-runtime -d app.jar
java --add-modules jdk.httpserver -jar app.jar
# In another terminal:
curl -fsS http://localhost:8080/health/ready
curl -fsS http://localhost:8080/lessonsCheck the outcome
Expect ready and kotlin,docker,kubernetes,azure. GET /missing must return 404; POST /lessons must return 405. Stop the server with Ctrl+C after checking.
If it differs
If compilation rejects target 21, check the installed compiler and JDK. If the port is busy, run PORT=8090 java --add-modules jdk.httpserver -jar app.jar and update curl.
Moving forward does not verify execution or award mastery.
Official Azure and identity prerequisites ↗