Deployment — Docker & Kubernetes

Build a fat JAR

./gradlew bootJar

Dockerfile

FROM eclipse-temurin:17-jdk
WORKDIR /app
COPY build/libs/*.jar app.jar
ENTRYPOINT ["java","-jar","/app/app.jar"]

Kubernetes

Create Deployment and Service YAML, use readiness/liveness probes, and configure resource limits.