In this article, you will read about the best practices for running Java apps on Kubernetes. Most of these recommendations will also be valid for other languages. However, I’m considering all the rules in the scope of Java characteristics and also showing solutions and tools available for JVM-based apps. Some of these Kubernetes recommendations are forced by design when using the most popular Java frameworks like Spring Boot or Quarkus.
Further in the article:
- Don’t set limits too low
- Consider memory usage first
- Proper liveness and readiness probes
- Choose the right JDK
- Consider migration to native compilation
- Configure logging properly
- Create integration tests
Let’s consider which alternative forJDK we should choose. Different vendors provide several replacements. If you are looking for a detailed comparison between them you should go to the following site. It recommends using Eclipse Temurin in the 17 version. Interesting read!
[Read More]