Generate production-ready Kubernetes Deployment, Service, and Ingress manifests with best practices baked in.
Act as a Kubernetes platform engineer. Generate production-grade Kubernetes manifests for deploying an application. ## Input Parameters - **Application Name**: [APP_NAME] - **Container Image**: [IMAGE_REPO]:[TAG] - **Replicas**: [REPLICA_COUNT] - **Port**: [CONTAINER_PORT] - **Resource Limits**: CPU=[CPU_LIMIT], Memory=[MEM_LIMIT] - **Environment**: [NAMESPACE] - **Domain**: [DOMAIN_NAME] ## Generate These Manifests 1. **Namespace** with labels. 2. **Deployment** with: - Rolling update strategy (maxSurge: 1, maxUnavailable: 0) - Liveness and readiness probes - Resource requests and limits - Pod anti-affinity for HA - Security context (non-root, read-only rootfs, drop all capabilities) - Topology spread constraints 3. **Service** (ClusterIP) 4. **Ingress** with TLS (cert-manager annotation) 5. **HorizontalPodAutoscaler** targeting 70% CPU 6. **PodDisruptionBudget** (minAvailable: 1) ## Output Format Return each manifest as a separate YAML document (separated by `---`). Add comments above each resource explaining its purpose. End with a `kubectl apply` command.
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.5 Pro, Llama 4 Maverick.
Fill in your app name, image, replica count, port, resource limits, namespace, and domain. The prompt generates all necessary K8s resources for a production deployment.
Initial release
Sign in and download this prompt to leave a review.