Kubernetes Articles
3 articles about Kubernetes. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Prevent Duplicate @Scheduled Execution in Distributed Environments with Spring Boot and ShedLock
Learn how to solve the @Scheduled duplicate execution problem that occurs when running multiple Pods on Kubernetes and similar platforms using ShedLock. Covers LockProvider configuration for both JDBC and Redis, correct usage of @SchedulerLock, and common pitfalls.
-
How to Achieve Graceful Shutdown and Zero-Downtime Deployment in Spring Boot
A practical guide to combining graceful shutdown configuration in Spring Boot 2.3+ with Kubernetes preStop hooks to ensure zero-downtime deployments without dropping in-flight requests.
-
How to Deploy a Spring Boot Application to Kubernetes
A step-by-step guide to deploying a Dockerized Spring Boot application to Kubernetes. Covers creating Manifests for Deployment, Service, ConfigMap, and Secret, as well as configuring Actuator health endpoints as livenessProbe/readinessProbe — practical patterns you can use in production.