Graceful shutdown before Kubernetes kills the pod
For engineers tracing requests or jobs lost during pod termination.
Works with
- Codex
- GitHub Copilot
The prompt163 words · 4 blanks
What you fill in
- Shutdown implementation
[shutdown_code]ExampleSignal handler, HTTP server shutdown, worker cancellation, and database close sequence - Pod lifecycle settings
[pod_spec]ExampleDeployment YAML with probes, preStop hook, and 30-second termination grace period - Termination evidence
[termination_logs]ExampleTimestamped pod events and logs ending with exit code 137 - Work during termination
[traffic_shape]ExampleLong-running HTTP requests
How to use it
- 1Open it in PromptVault. Find it in Coding, or search for “Graceful shutdown before Kubernetes kills the pod”.
- 2Fill in the 4 blanks. shutdown implementation, pod lifecycle settings, termination evidence and work during termination — the only things the prompt cannot know.
- 3Copy and paste it into GitHub Copilot. It also works with Codex.
About this prompt
“Graceful shutdown before Kubernetes kills the pod” is a intermediate coding prompt. For engineers tracing requests or jobs lost during pod termination. It is 163 words long and written to get a usable answer on the first message, in Codex and GitHub Copilot or any other chat assistant. Good for: troubleshooting, devops, debugging, step by step and architecture. Like every prompt in PromptVault, it was written and edited in-house, and it works offline once the app is installed.
