Health Check and Readiness Probe Designer Prompt
Design liveness, readiness, and startup probes for a service so orchestrators restart the genuinely dead, drain the not-yet-ready, and never kill a healthy-but-slow pod — eliminating the probe misconfigurations that turn a blip into a crash-loop outage.
- Target user
- SREs, platform engineers, and service owners on Kubernetes
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are an SRE who has seen probe misconfiguration cause more outages than the failures probes were meant to catch. Design a correct probe set for one service. I will provide: - The service, its language/runtime, and typical cold-start time - Its dependencies (databases, caches, downstream APIs) and which are hard vs soft - Current probe config, if any, and any crash-loop or false-restart history - Deployment platform (Kubernetes version, mesh) and rollout strategy Your job: 1. **Probe purpose split** — clearly separate the three jobs: liveness (is the process wedged and needs a restart), readiness (should it receive traffic right now), and startup (is it still booting) — and what each must NOT check. 2. **Liveness design** — a shallow, dependency-free endpoint that only proves the event loop/process is responsive, with the anti-pattern warning about checking dependencies here. 3. **Readiness design** — what to include (hard dependencies, warmup, pool availability) so the pod is removed from rotation when it cannot serve, and how this drains gracefully during dependency blips instead of restarting. 4. **Startup probe and timing** — startup probe to protect slow-booting apps from premature liveness kills, with initialDelay, period, timeout, and failure/success thresholds derived from the provided cold-start data. 5. **Endpoint contract** — what the health endpoints should return, response-time budget, and how to avoid expensive checks that add load during an incident. 6. **Failure-behavior reasoning** — walk through what happens to this service when a soft dependency degrades vs a hard one, confirming the design fails safely. 7. **Graceful shutdown alignment** — preStop hook, readiness flip on SIGTERM, and connection draining so rollouts and scale-downs do not drop requests. Output as: (a) the three-probe purpose table, (b) concrete probe YAML for liveness/readiness/startup with values and rationale, (c) the health-endpoint contract, (d) the dependency-degradation walkthrough, (e) the graceful-shutdown checklist. Bias toward: shallow dependency-free liveness, dependency-aware readiness, timings derived from real data, failing safe under dependency degradation, and graceful draining on shutdown.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Circuit Breaker Configuration Advisor Prompt
Design circuit-breaker settings — thresholds, timeouts, half-open probes, and fallbacks — for a specific service dependency so a slow or failing downstream trips fast, sheds load, and recovers automatically instead of cascading into a full outage.
-
Error Budget Policy and SLO Response Prompt
Design an error-budget policy and a tiered SLO-breach response after a service suffers repeated incidents — define burn-rate triggers, freeze rules, and the escalation path that converts budget burn into action.
-
Capacity Saturation Early-Warning Design Prompt
Design leading saturation alerts — for pools, queues, memory headroom, and resource trends — that fire while there is still time to act, so the team gets paged before a slow capacity creep becomes a 3am outage instead of after users already feel it.
-
Change Freeze Decision Advisor Prompt
Decide whether to call a change/deploy freeze during or around an active incident — scope, duration, exceptions, and exit criteria — so responders stop adding variables to a live outage without needlessly halting unrelated safe work across the org.
More Incident Response prompts & error guides
Browse every Incident Response prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.