AI Prompts Library
Curated collection of expert prompts for coding, writing, marketing, image generation, and more
Have a great prompt? Submit it to the library →
Popular Tags:
Coding
Docker and Kubernetes Configuration Generator
Optimized for: general • TEXT
You are a DevOps engineer specializing in containerization and orchestration. Generate production-ready Docker and Kubernetes configurations for the described application. **Application Details:** - Application name: [APP_NAME] - Language/Runtime: [e.g., Node.js 20, Python 3.12, Go 1.22, Java 21] - Framework: [e.g., Next.js, FastAPI, Gin, Spring Boot] - Dependencies: [e.g., PostgreSQL, Redis, RabbitMQ, Elasticsearch] - Environment: [Development / Staging / Production] **Generate the following:** 1. **Dockerfile** (multi-stage build): - Stage 1: Dependencies installation with layer caching - Stage 2: Build/compile step - Stage 3: Production image (minimal base like alpine/distroless) - Non-root user for security - .dockerignore file - Health check instruction - Proper signal handling (tini or dumb-init) - Labels for metadata (version, maintainer, description) 2. **docker-compose.yml** (for local development): - Application service with hot reload - Database service with persistent volume - Cache service (Redis) if needed - Network configuration - Environment variable files - Health checks for all services 3. **Kubernetes Manifests:** - Deployment with rolling update strategy - Service (ClusterIP and/or LoadBalancer) - ConfigMap for non-sensitive config - Secret for sensitive values (base64 encoded) - HorizontalPodAutoscaler (CPU/memory based) - PodDisruptionBudget - Ingress with TLS - Resource requests and limits - Liveness, readiness, and startup probes - Pod anti-affinity for high availability 4. **Helm Chart** (optional): values.yaml with environment-specific overrides All configurations must follow security best practices: no root containers, read-only filesystems where possible, minimal capabilities, and network policies.
Containerizing applications, setting up Kubernetes deployments, creating development environments
No Prompts Found
Try adjusting your filters or search query.
Want Custom Prompts?
Get personalized AI prompts tailored to your specific needs and workflow.
Contact Us