Kubernetes deployment YAML
Production-grade Deployment + Service + HPA + PDB for a stateless service.
Includes resource limits, probes, anti-affinity, security context.
The prompt
Copy this into ChatGPT, Claude, Gemini or any assistant you already use β then paste your own service name + image + scale targets underneath it.
Generate Kubernetes manifests for the described service: **Deployment** β replicas, resource requests/limits, liveness + readiness probes, security context (non-root, RO root FS), anti-affinity **Service** β ClusterIP or LoadBalancer **HPA** β CPU + memory targets **PDB** β minAvailable **ConfigMap** + **Secret** placeholders Label everything: app, version, env, owner. Rules: - Resource limits required. - Non-root, read-only filesystem where possible. - Probes use real health endpoints.
Or run it here
Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params β paste manually with Ctrl/Cmd+V.
Related prompts
Drafts an on-call runbook for a specific failure mode β detect, diagnose, mitigate, recover.
Generates a multi-stage, small-image Dockerfile for a given stack.
A complete CI pipeline YAML β lint, test, build, scan, deploy β for a Node/Python/Go service.
Writes a log query (Datadog / Splunk / Loki / CloudWatch) to surface what you need.
Plan for metrics, logs, traces, and alerts for a new service β what to instrument from day 1.
Decodes any cron schedule string into when it actually runs.
Browse the full free AI prompt library or see more devops & sre prompts.