How I run Spring Boot applications on Kubernetes

Here are some notes about how I run a Spring Boot application on Kubernetes. This is the 2nd part of a series of articles about Spring Boot applications on Kubernetes. You can find the 1st part here. Running a JVM based application on Kubernetes seems a pretty easy task but there are a lot of things to take in consideration: Application containerization Startup Graceful shutdown JVM & Resource limits Application containerization In order to containerize a Spring Boot application I leverage the (not so) new layering feature: this allows to create a Docker Layer for each part of our application:...

December 22, 2022 · 8 min · Justin