Kubernetes Deployment Manifest Generator
devops
YAML
scaffolding
strict_senior
Generate complete Kubernetes manifests including Deployment, Service, Ingress, ConfigMap, Secrets, and HPA.
By olivia_c
12/8/2025
Prompt
Generate a complete set of Kubernetes manifests for deploying an application to production with the following specifications:
Application Details
- Application Name: [e.g., myapp, api-server, web-frontend]
- Namespace: [production / staging / default]
- Container Image: [e.g., myorg/myapp:1.0.0]
- Container Port: [e.g., 3000, 8080]
- Replicas: [Initial number, e.g., 3]
Resource Requirements
- Memory Request: [e.g., 256Mi]
- Memory Limit: [e.g., 512Mi]
- CPU Request: [e.g., 100m]
- CPU Limit: [e.g., 500m]
Environment Variables
List all environment variables needed:
[VAR_NAME_1]: [value / from-secret / from-configmap][VAR_NAME_2]: [value / from-secret / from-configmap][VAR_NAME_3]: [value / from-secret / from-configmap]
Health Checks
- Liveness Probe: [HTTP path, e.g., /health]
- Readiness Probe: [HTTP path, e.g., /ready]
- Initial Delay: [seconds, e.g., 30]
- Period: [seconds, e.g., 10]
Service Configuration
- Service Type: [ClusterIP / LoadBalancer / NodePort]
- Service Port: [External port, e.g., 80]
- Target Port: [Container port, e.g., 3000]
Ingress Configuration
- Domain: [e.g., myapp.example.com]
- Path: [e.g., /, /api]
- TLS/SSL: [Yes / No]
- Certificate Issuer: [e.g., letsencrypt-prod]
- Ingress Class: [e.g., nginx]
- Additional Annotations: [List any custom annotations]
ConfigMap Data
List configuration files/data to include:
- [config-file-1.conf]: [Description of what it contains]
- [config-file-2.json]: [Description of what it contains]
Secrets
List secrets needed (DO NOT include actual values):
- [secret-key-1]: [Description, e.g., database connection string]
- [secret-key-2]: [Description, e.g., API key]
- [secret-key-3]: [Description, e.g., JWT secret]
Autoscaling (HPA)
- Min Replicas: [e.g., 3]
- Max Replicas: [e.g., 10]
- CPU Target: [Utilization %, e.g., 70]
- Memory Target: [Utilization %, e.g., 80]
Additional Requirements
- Include proper labels and selectors
- Add resource requests and limits
- Configure liveness and readiness probes
- Set up horizontal pod autoscaling
- Include security context if needed
- Add annotations for monitoring/logging
Deliverables
Generate the following Kubernetes manifest files:
- deployment.yaml - Deployment with container specs, env vars, probes, resources
- service.yaml - Service exposing the application
- ingress.yaml - Ingress with TLS and routing rules
- configmap.yaml - ConfigMap with configuration data
- secret.yaml - Secret template (with placeholder values)
- hpa.yaml - HorizontalPodAutoscaler for autoscaling
All manifests should be production-ready and follow Kubernetes best practices. Include comments explaining key configurations.
Tags
kubernetes
k8s
deployment
devops
Tested Models
gpt-4
claude-3-opus