TIL about Pod lifecycle hooks, allowing one to run commands when a Pod is spinning up or shutting down. The preStop one is crucial for graceful shutdown of a Pod. It runs after the Pod’s been disconnected from the endpoint, but before it receives a SIGTERM. Adding a sleep here should help with that.