What problem does it solve? Rolling deployments and pod terminations in Kubernetes often cause 5xx spikes, dropped requests, and stuck transactions when a Spring Boot service is killed mid-request. This Skill wires graceful shutdown across the HTTP server, async executors, message consumers, and outbound clients so in-flight work completes before the process exits. ## Core Features & Use Cases - Spring Boot graceful shutdown: Enables server.shutdown=graceful with a shutdown-phase timeout so in-flight HTTP requests complete before the connector closes. - Kubernetes termination contract: Aligns terminationGracePeriodSeconds, a preStop sleep hook, and Spring's timeout so ingress and kube-proxy drain endpoints before shutdown begins. - Executor and consumer draining: Configures TaskExecutor wait-on-shutdown, Kafka and RabbitMQ listener shutdown timeouts, and @PreDestroy cleanup for native HTTP clients. - Use Case: When a deployment shows 5xx spikes during kubectl rollout restart, apply this Skill to eliminate dropped requests and validate the fix with a k6 load test during a rolling update. ## Quick Start Apply the graceful-shutdown skill to this Spring Boot service and configure the application YAML, Kubernetes deployment, and executors for clean pod termination.