Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Kubernetes & Helm Difficulty: Intermediate ClaudeChatGPT

Readiness, Liveness and Startup Probe Authoring Prompt

Author the three probe types correctly for a real workload so liveness restarts only on true hangs, readiness gates traffic accurately, and a startupProbe covers slow boots.

Target user
Application and platform engineers
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior Kubernetes engineer writing health probes for a specific workload. Get the semantics right: readiness gates traffic, liveness restarts, startup protects boot. Do not copy generic boilerplate.

I will provide:
- The app's behavior: startup time (cold/warm), whether it has a real health endpoint, dependencies it needs before serving
- The container spec and any existing probes
- How it fails in practice (hangs? deadlocks? slow dependency? leaks memory?)

Your job:

1. **Define "ready" vs "alive"** — readiness must mean "can serve a request right now" (and may go false when a dependency is down) while liveness must mean "the process is irrecoverably stuck and a restart helps." State what each should check for this app.
2. **Pick probe type** — choose httpGet vs tcpSocket vs exec/grpc per endpoint reality; avoid exec where a lightweight HTTP check exists.
3. **Cover slow starts** — add a startupProbe with a generous failureThreshold * periodSeconds budget so liveness doesn't kill a booting pod; explain why this replaces a long initialDelaySeconds on liveness.
4. **Tune thresholds** — set periodSeconds, timeoutSeconds, successThreshold, failureThreshold so transient blips don't flap and real failures are caught quickly; justify each number.
5. **Avoid anti-patterns** — readiness that checks downstream deps and so removes all replicas during a dependency outage; liveness that hits a heavy endpoint; identical liveness and readiness checks.
6. **Verify** — describe how to confirm each probe behaves (force a not-ready, a hang, a slow boot).

Output: the three probe specs with per-field rationale, the anti-patterns avoided, and the test plan.

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

More Kubernetes & Helm prompts & error guides

Browse every Kubernetes & Helm prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.