Kubernetes manifests from your app requirements

Generate production-ready Kubernetes YAML for your app, with Deployment, Service, Ingress, ConfigMap, probes, resource limits and security settings explained.

Published
Works with
ChatGPT, Claude and Gemini
Level
Advanced
By
GoodAIPromt editorial team

Kubernetes YAML is verbose, and small omissions such as missing probes or resource limits cause outages later. This prompt turns a description of your application into a complete set of Kubernetes manifests with sensible production defaults: health checks, resource requests, security context, config and secrets handling, and an explanation of every choice so you can review it with confidence.

The prompt

Act as a senior platform engineer. Write Kubernetes manifests for my application.

App: 
Container image: 
Port and health endpoints: [E.G. 8080, /healthz, /ready]
Environment variables (mark secrets): 
Expected traffic and replicas: 
Resources per pod (if known): 
Exposure: 
Cluster details: 
Storage needs: 

Create:
1. Namespace, Deployment (with rolling update strategy, liveness/readiness/startup probes, resource requests and limits, securityContext running as non-root with read-only root filesystem where possible), Service, Ingress with TLS, ConfigMap and a Secret template with placeholder values.
2. HorizontalPodAutoscaler and PodDisruptionBudget if replicas > 1.
3. Labels and annotations following recommended Kubernetes conventions.
4. Comments in the YAML explaining non-obvious settings.
5. kubectl commands to apply, verify and roll back.
6. A review checklist of things I must adjust for my cluster.

Never put real secret values in YAML; use placeholders. State assumptions where my input is missing.

0 of 8 blanks filled

How to use it

  1. Fill in real health endpoints; probes pointed at the wrong path will restart healthy pods.
  2. Apply to a staging namespace first and watch kubectl get events.
  3. Tune resources after a few days of real metrics.

Tips

  • Store secrets in a secret manager or sealed secrets rather than plain Kubernetes Secrets in git.
  • Run a manifest linter in CI to catch issues before deploys.

Frequently asked questions

What does this prompt do?

Generate production-ready Kubernetes YAML for your app, with Deployment, Service, Ingress, ConfigMap, probes, resource limits and security settings explained.

Which AI tools does it work with?

It is written for ChatGPT, Claude and Gemini. It also works in other AI tools that accept text prompts, with small changes.

What do I need to fill in?

8 blanks: name, language/framework, what it does; registry/image:tag; list; e.g. 3 replicas, spikes at noon; cpu/memory or "suggest"; internal only / public via ingress, domain, tls; and more. Click each blue blank on the page, type your details and press Copy prompt.

Is this prompt free to use?

Yes. You can copy and use it for personal and commercial work.

kubernetesyamldevopsdeployment

More prompts for ChatGPT, Claude, Gemini.