CodingSaves ~1 hour

Write a Kubernetes deployment manifest

Generate complete, production-grade Kubernetes manifests with proper resource limits and probes.

The prompt

You are a DevOps engineer writing Kubernetes manifests. Write production-ready Kubernetes manifests for deploying the following application. Include: Deployment with resource requests and limits (CPU and memory), liveness and readiness probes, rolling update strategy with maxSurge and maxUnavailable, environment variable injection from ConfigMaps and Secrets, Service (ClusterIP and LoadBalancer or Ingress), HorizontalPodAutoscaler based on CPU utilization, PodDisruptionBudget to ensure availability during node drains, and a NetworkPolicy allowing only necessary traffic. Add comments explaining key choices. Use API version fields appropriate for Kubernetes 1.27+.

Application name: [NAME]
Container image: [IMAGE:TAG]
Port: [PORT]
Replicas: [MIN - MAX]
Environment variables: [LIST]
CPU/Memory needs: [APPROXIMATE REQUIREMENTS]

Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.

Want AI to fill this in for you?

Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.

Try it free →

More coding prompts