DevOps for Java

Practical Docker and Kubernetes guides for Java developers, building minimal production images, deploying Spring Boot to Kubernetes, managing configuration with ConfigMaps and Secrets, configuring health probes for zero-downtime deployments, and packaging everything with Helm.

Beginner Intermediate Advanced

Docker

2 articles

Kubernetes

7 articles
Kubernetes: Deploying Spring Boot with Deployments & Services

Deploy Spring Boot on Kubernetes: how Deployments, Services and Ingress fit together, JVM-aware resource settings, rolling updates, autoscaling and common pitfalls.

Kubernetes: ConfigMaps, Secrets & Spring Boot Property Sources

Spring Boot configuration on Kubernetes: property source order, ConfigMaps and Secrets as variables or files, configtree imports, reloads and External Secrets.

Kubernetes Probes for Spring Boot: Liveness, Readiness, Startup

How Kubernetes probes work and how to set them for Spring Boot: Actuator liveness and readiness, startup probes, timing defaults, and graceful shutdown with preStop.

Graceful Shutdown for Spring Boot on Kubernetes

What happens when Kubernetes stops a Spring Boot pod: the endpoint race, preStop, grace periods, lifecycle phases, executors and Kafka consumers, run for real.

Autoscaling Spring Boot on Kubernetes: HPA, JVM Warm-up, KEDA

Why CPU-based HPA scaling misleads for the JVM, how the HPA treats starting pods, and how to scale Spring Boot on request rate or queue lag with Micrometer and KEDA.

Database Migrations for Spring Boot on Kubernetes

Where to run Flyway or Liquibase on Kubernetes, how replicas share the migration lock, and the expand/contract pattern for schema changes during rolling updates.

Helm Charts for Spring Boot: Templating, Values & Rollbacks

Helm charts for Spring Boot: how templates and values render manifests, per-environment overrides, releases and rollbacks, migration hooks, CI and Helmfile.