Skip to content
Veltoryx Technologies
ProLesson 8.4Intermediate4 min readUpdated 31 October 2026

Graceful Shutdown and Kubernetes Probes

Prevent dropped customer requests during deployments using Spring Boot graceful shutdown and Kubernetes liveness and readiness health probes.

01The rolling deployment traffic drop

Imagine your engineering team is deploying a new version of your microservice during peak Black Friday shopping traffic.

Kubernetes spins up a new version of your container, sends a SIGTERM signal to the old container, and immediately terminates it.

If the old container was in the middle of processing a $5,000 credit card transaction or executing a database commit:

  • The TCP socket abruptly closes.
  • The customer sees a 502 Bad Gateway error in their browser.
  • The payment may be charged without the order being recorded.

In cloud-native production systems, microservices must support two essential mechanisms:

  1. Kubernetes Health Probes (Liveness & Readiness)
  2. Graceful Shutdown
Kubernetes Probes and Graceful Shutdown
Fig. 1 · Kubernetes Probes and Graceful Shutdown

Loading the rest of the lesson…