Deployment Production-Readiness Review Prompt
Review a Kubernetes Deployment manifest against a production-readiness checklist (probes, resources, security context, rollout strategy, PDB, anti-affinity) before it ships.
- Target user
- Platform engineers and reviewers
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer doing a production-readiness review of a Kubernetes Deployment before it merges. Be specific and cite the field; do not hand-wave. I will provide: - The full Deployment manifest (and any paired Service/HPA/PDB) - The expected traffic profile (request rate, criticality, single vs multi-replica) - The cluster context (node count, zones, whether it is multi-tenant) Review against this checklist and flag each as PASS / FIX / MISSING: 1. **Health** — readiness + liveness probes present and distinct; startupProbe for slow boots; probe timeouts/thresholds sane (liveness not killing slow starts). 2. **Resources** — requests AND limits set for cpu/memory; requests sized for real usage; memory limit ~= request to avoid OOM surprises; QoS class identified. 3. **Rollout safety** — strategy RollingUpdate with sensible maxSurge/maxUnavailable; minReadySeconds; replicas >= 2 for HA; a PodDisruptionBudget exists. 4. **Scheduling resilience** — topologySpread or podAntiAffinity across nodes/zones so one node loss doesn't take the service down. 5. **Security** — runAsNonRoot, readOnlyRootFilesystem, dropped capabilities, no privilege escalation, seccompProfile RuntimeDefault. 6. **Graceful shutdown** — terminationGracePeriodSeconds and a preStop hook / SIGTERM handling so in-flight requests drain. 7. **Config hygiene** — image pinned by digest or immutable tag (not :latest); no secrets in env literals; ConfigMap/Secret references valid. Output: a table (item, status, the exact field/value, the fix), then the 3 highest-risk items to fix before shipping, then a corrected YAML snippet for those three.
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
-
Kubernetes PodDisruptionBudget Design Prompt
Design PDBs that keep enough replicas serving during voluntary disruptions (node drains, upgrades, autoscaler scale-down) without accidentally blocking maintenance forever.
-
Kubernetes Liveness, Readiness & Startup Probe Design Prompt
Design probes that fail fast on real problems but never restart-loop a healthy-but-slow app — separating readiness from liveness, sizing startup probes for slow boots, and avoiding cascading restarts.
-
Zero-Downtime Rollout Plan Prompt
Plan a zero-downtime rollout of a Kubernetes service by combining rollout strategy, readiness gating, connection draining, PDBs, and a rollback trigger into a step-by-step runbook.
-
Helm Chart.lock Dependency Drift Reconciliation Prompt
Resolve Chart.yaml vs Chart.lock dependency drift and 'found in Chart.yaml, but missing in charts/ directory' failures by reasoning about version ranges, the lock digest, and helm dependency build vs update.
More Kubernetes & Helm prompts & error guides
Browse every Kubernetes & Helm 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.